MD007 shouldn't apply to sublists of ordered lists, test and document MD006 behavior (fixes #20).

This commit is contained in:
David Anson 2016-06-26 11:56:48 -07:00
parent 83639b8ef8
commit efe9c9e73c
3 changed files with 97 additions and 8 deletions

View 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