mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
37 lines
607 B
Markdown
37 lines
607 B
Markdown
# `MD035` - Horizontal rule style
|
|
|
|
Tags: `hr`
|
|
|
|
Aliases: `hr-style`
|
|
|
|
Parameters:
|
|
|
|
- `style`: Horizontal rule style (`string`, default `consistent`)
|
|
|
|
This rule is triggered when inconsistent styles of horizontal rules are used
|
|
in the document:
|
|
|
|
```markdown
|
|
---
|
|
|
|
- - -
|
|
|
|
***
|
|
|
|
* * *
|
|
|
|
****
|
|
```
|
|
|
|
To fix this, use the same horizontal rule everywhere:
|
|
|
|
```markdown
|
|
---
|
|
|
|
---
|
|
```
|
|
|
|
The configured style can ensure all horizontal rules use a specific string or it
|
|
can ensure all horizontal rules match the first horizontal rule (`consistent`).
|
|
|
|
Rationale: Consistent formatting makes it easier to understand a document.
|