mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add style one_or_ordered to MD029/ol-prefix (fixes #97).
This commit is contained in:
parent
4345423be1
commit
39d39db961
14 changed files with 242 additions and 15 deletions
11
doc/Rules.md
11
doc/Rules.md
|
|
@ -717,11 +717,11 @@ Tags: ol
|
|||
|
||||
Aliases: ol-prefix
|
||||
|
||||
Parameters: style ("one", "ordered"; default "one")
|
||||
Parameters: style ("one", "ordered", "one_or_ordered"; default "one_or_ordered")
|
||||
|
||||
This rule is triggered on ordered lists that do not either start with '1.' or
|
||||
do not have a prefix that increases in numerical order (depending on the
|
||||
configured style, which defaults to 'one').
|
||||
configured style).
|
||||
|
||||
Example valid list if the style is configured as 'one':
|
||||
|
||||
|
|
@ -735,6 +735,13 @@ Example valid list if the style is configured as 'ordered':
|
|||
2. Do that.
|
||||
3. Done.
|
||||
|
||||
Both examples are valid when the style is configured as 'one_or_ordered'.
|
||||
|
||||
Example invalid list for all styles:
|
||||
|
||||
1. Do this.
|
||||
3. Done.
|
||||
|
||||
<a name="md030"></a>
|
||||
|
||||
## MD030 - Spaces after list markers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue