mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-29 20:18:49 +01:00
MD007 shouldn't apply to sublists of ordered lists, test and document MD006 behavior (fixes #20).
This commit is contained in:
parent
83639b8ef8
commit
efe9c9e73c
3 changed files with 97 additions and 8 deletions
73
test/lists-with-nesting.md
Normal file
73
test/lists-with-nesting.md
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
# Heading
|
||||
|
||||
## Excessive nesting
|
||||
|
||||
- one
|
||||
1. two
|
||||
1. three
|
||||
- four
|
||||
|
||||
1. one
|
||||
- two
|
||||
- three
|
||||
1. four
|
||||
|
||||
## Insufficient nesting
|
||||
|
||||
- one
|
||||
1. two
|
||||
1. three
|
||||
- four
|
||||
|
||||
1. one
|
||||
- two {MD006}
|
||||
- three
|
||||
1. four
|
||||
|
||||
## Correct nesting, same type
|
||||
|
||||
- one
|
||||
- two
|
||||
- three
|
||||
- four
|
||||
|
||||
1. one
|
||||
1. two
|
||||
1. three
|
||||
1. four
|
||||
|
||||
## Correct nesting, different types
|
||||
|
||||
- one
|
||||
1. two
|
||||
1. three
|
||||
- four
|
||||
|
||||
1. one
|
||||
- two
|
||||
- three
|
||||
1. four
|
||||
|
||||
1. one
|
||||
- two
|
||||
- three
|
||||
|
||||
- one
|
||||
1. two
|
||||
- three
|
||||
|
||||
- one
|
||||
- two
|
||||
1. three
|
||||
|
||||
1. one
|
||||
1. two
|
||||
- three
|
||||
|
||||
1. one
|
||||
- two
|
||||
1. three
|
||||
|
||||
- one
|
||||
1. two
|
||||
1. three
|
||||
Loading…
Add table
Add a link
Reference in a new issue