mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Allow '0'- and ' '-prefixed ordered list markers in MD005/MD029 (fixes #126).
This commit is contained in:
parent
2710c375b3
commit
4a1e42d942
7 changed files with 190 additions and 8 deletions
36
doc/Rules.md
36
doc/Rules.md
|
|
@ -190,6 +190,31 @@ for the list to fix it:
|
|||
* Nested Item 3
|
||||
```
|
||||
|
||||
Sequentially-ordered list markers are usually left-aligned such that all items
|
||||
have the same starting column:
|
||||
|
||||
```markdown
|
||||
...
|
||||
8. Item
|
||||
9. Item
|
||||
10. Item
|
||||
11. Item
|
||||
...
|
||||
```
|
||||
|
||||
This rule also supports right-alignment of list markers such that all items have
|
||||
the same ending column:
|
||||
|
||||
```markdown
|
||||
...
|
||||
8. Item
|
||||
9. Item
|
||||
10. Item
|
||||
11. Item
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
<a name="md006"></a>
|
||||
|
||||
## MD006 - Consider starting bulleted lists at the beginning of the line
|
||||
|
|
@ -850,6 +875,17 @@ Example invalid list for all styles:
|
|||
3. Done.
|
||||
```
|
||||
|
||||
This rule supports 0-prefixing ordered list items for uniform indentation:
|
||||
|
||||
```markdown
|
||||
...
|
||||
08. Item
|
||||
09. Item
|
||||
10. Item
|
||||
11. Item
|
||||
...
|
||||
```
|
||||
|
||||
<a name="md030"></a>
|
||||
|
||||
## MD030 - Spaces after list markers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue