2022-10-29 23:21:45 -07:00
|
|
|
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
|
|
|
|
```
|
|
|
|
|
2023-10-23 20:37:38 -07:00
|
|
|
Note that scenarios like block quotes "indent" the start of the line, so the
|
|
|
|
following is also correct:
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
> # Heading in Block Quote
|
|
|
|
```
|
|
|
|
|
2022-10-29 23:21:45 -07:00
|
|
|
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.
|