mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-02-16 10:18:06 +01:00
20 lines
462 B
Markdown
20 lines
462 B
Markdown
|
|
# MD023 - Headers must start at the beginning of the line
|
||
|
|
|
||
|
|
Tags: headers, spaces
|
||
|
|
|
||
|
|
Aliases: header-start-left
|
||
|
|
|
||
|
|
This rule is triggered when a header is indented by one or more spaces:
|
||
|
|
|
||
|
|
Some text
|
||
|
|
|
||
|
|
# Indented header
|
||
|
|
|
||
|
|
To fix this, ensure that all headers start at the beginning of the line:
|
||
|
|
|
||
|
|
Some text
|
||
|
|
|
||
|
|
# Header
|
||
|
|
|
||
|
|
Rationale: Headers that don't start at the beginning of the line will not be
|
||
|
|
parsed as headers, and will instead appear as regular text.
|