mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-22 00:40:12 +01:00
22 lines
524 B
Markdown
22 lines
524 B
Markdown
|
|
# MD021 - Multiple spaces inside hashes on closed atx style header
|
||
|
|
|
||
|
|
Tags: headers, atx_closed, spaces
|
||
|
|
|
||
|
|
Aliases: no-multiple-space-closed-atx
|
||
|
|
|
||
|
|
This rule is triggered when more than one space is used to separate the
|
||
|
|
header text from the hash characters in a closed atx style header:
|
||
|
|
|
||
|
|
# Header 1 #
|
||
|
|
|
||
|
|
## Header 2 ##
|
||
|
|
|
||
|
|
To fix this, separate the header text from the hash character by a single
|
||
|
|
space:
|
||
|
|
|
||
|
|
# Header 1 #
|
||
|
|
|
||
|
|
## Header 2 ##
|
||
|
|
|
||
|
|
Note: this rule will fire if either side of the header contains multiple
|
||
|
|
spaces.
|