MD019 - No multiple spaces after hash in heading¶
Aliases: no-multiple-space-atx
What this rule does¶
Ensures there's only one space between the # symbols and the heading text.
Why this matters¶
- Consistency: Extra spaces create inconsistent visual spacing
- Compatibility: Some Markdown processors may not handle multiple spaces correctly
- Cleanliness: Single spacing looks professional and clean
Examples¶
✅ Correct¶
❌ Incorrect¶
🔧 Fixed¶
Configuration¶
This rule has no configuration options.
Automatic fixes¶
This rule automatically removes extra spaces, leaving just one space after the # symbols.
Learn more¶
- CommonMark specification for headings - Technical details about heading syntax