MD023 - Start headings at the beginning of lines¶
Aliases: heading-start-left
What this rule does¶
Checks that headings start at the beginning of the line without any indentation.
Why this matters¶
- Proper rendering: Indented headings may not be recognized by all Markdown processors
- Clear structure: Headings at the line start make document hierarchy obvious
- Consistency: Uniform alignment creates a professional appearance
- Avoid confusion: Indented text with # symbols might be misinterpreted
Examples¶
✅ Correct¶
❌ Incorrect¶
🔧 Fixed¶
Configuration¶
Automatic fixes¶
This rule automatically removes any leading spaces or tabs from heading lines, moving them to the beginning of the line.