MD021 - no-multiple-space-closed-atx¶
Description¶
This rule is triggered when more than one space is used to separate the heading text from the hash characters in a closed ATX style heading. The violation can occur on either side of the heading text.
Rationale¶
Extra space has no purpose and does not affect the rendering of content. Using a single space keeps the source clean and consistent.
Examples¶
Invalid¶
# Heading 1 #
## Heading 2 ##
### Heading 3 ###
Closed ATX headings with multiple spaces inside hashes.
Valid¶
# Heading 1 #
## Heading 2 ##
### Heading 3 ###
Closed ATX headings with single space inside hashes.