mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Add MD035 with tests.
This commit is contained in:
parent
9acbb2750e
commit
762d8425ca
12 changed files with 166 additions and 3 deletions
34
doc/Rules.md
34
doc/Rules.md
|
@ -731,3 +731,37 @@ enclose it in a code block, otherwise in some markdown parsers it _will_ be
|
|||
converted:
|
||||
|
||||
`http://www.example.com`
|
||||
|
||||
## MD035 - Horizontal rule style
|
||||
|
||||
Tags: hr
|
||||
|
||||
Parameters: style ("consistent", "---", "***", or other string specifying the
|
||||
horizontal rule; default "consistent")
|
||||
|
||||
This rule is triggered when inconsistent styles of horizontal rules are used
|
||||
in the document:
|
||||
|
||||
---
|
||||
|
||||
- - -
|
||||
|
||||
***
|
||||
|
||||
* * *
|
||||
|
||||
****
|
||||
|
||||
To fix this, ensure any horizontal rules used in the document are consistent,
|
||||
or match the given style if the rule is so configured:
|
||||
|
||||
---
|
||||
|
||||
---
|
||||
|
||||
Note: by default, this rule is configured to just require that all horizontal
|
||||
rules in the document are the same, and will trigger if any of the horizontal
|
||||
rules are different than the first one encountered in the document. If you
|
||||
want to configure the rule to match a specific style, the parameter given to
|
||||
the 'style' option is a string containing the exact horizontal rule text that
|
||||
is allowed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue