Allow '0'- and ' '-prefixed ordered list markers in MD005/MD029 (fixes #126).

This commit is contained in:
David Anson 2018-06-15 22:37:12 -07:00
parent 2710c375b3
commit 4a1e42d942
7 changed files with 190 additions and 8 deletions

View file

@ -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