MD035 - Horizontal Rule Style
Horizontal rule style should be consistent.
Why This Rule Exists
Markdown supports multiple horizontal rule syntaxes. Consistent style throughout a document improves readability and maintainability.
Styles
---
---
---
---
** *
All render as horizontal rules but mixing them is inconsistent.
Examples
Incorrect
Section one content.
---
Section two content.
---
Section three content.
Correct
Section one content.
---
Section two content.
---
Section three content.
Configuration
[MD035]
style = "---" # Options: "---", "***", "___", "consistent"
| Value | Description |
|---|---|
--- | Three dashes |
*** | Three asterisks |
___ | Three underscores |
consistent | Match first occurrence |
When to Disable
- Documents with intentional style variation
- Content imported from multiple sources
Rule Details
- Rule ID: MD035
- Aliases: hr-style
- Category: Formatting
- Severity: Warning
- Auto-fix: Yes