mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
19 lines
375 B
Markdown
19 lines
375 B
Markdown
|
|
This rule is triggered when a heading is indented by one or more spaces:
|
||
|
|
|
||
|
|
```markdown
|
||
|
|
Some text
|
||
|
|
|
||
|
|
# Indented heading
|
||
|
|
```
|
||
|
|
|
||
|
|
To fix this, ensure that all headings start at the beginning of the line:
|
||
|
|
|
||
|
|
```markdown
|
||
|
|
Some text
|
||
|
|
|
||
|
|
# Heading
|
||
|
|
```
|
||
|
|
|
||
|
|
Rationale: Headings that don't start at the beginning of the line will not be
|
||
|
|
parsed as headings, and will instead appear as regular text.
|