mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-05 23:48:49 +01:00
Add MD030 with tests, refactor list handling with flattenLists.
This commit is contained in:
parent
b21548a992
commit
2b289ab5f3
4 changed files with 177 additions and 56 deletions
74
test/spaces_after_list_marker.md
Normal file
74
test/spaces_after_list_marker.md
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
Normal list
|
||||
|
||||
* Foo
|
||||
* Bar
|
||||
* Baz
|
||||
|
||||
List with incorrect spacing
|
||||
|
||||
* Foo {MD030}
|
||||
* Bar {MD030}
|
||||
* Baz {MD030}
|
||||
|
||||
List with children:
|
||||
|
||||
* Foo {MD030}
|
||||
* Bar {MD030}
|
||||
* Baz
|
||||
|
||||
List with children and correct spacing:
|
||||
|
||||
* Foo
|
||||
* Bar
|
||||
* Baz (This sublist has no children)
|
||||
|
||||
List with Multiple paragraphs and correct spacing
|
||||
|
||||
* Foo
|
||||
|
||||
Here is the second paragraph
|
||||
|
||||
* All items in the list need the same indent
|
||||
|
||||
List with multiple paragraphs and incorrect spacing
|
||||
|
||||
* Foo {MD030}
|
||||
|
||||
Here is the second paragraph
|
||||
|
||||
* Bar {MD030}
|
||||
|
||||
List with code blocks:
|
||||
|
||||
* Foo
|
||||
|
||||
Here is some code
|
||||
|
||||
* Bar
|
||||
|
||||
Ordered lists:
|
||||
|
||||
1. Foo
|
||||
1. Bar
|
||||
1. Baz
|
||||
|
||||
And with incorrect spacing:
|
||||
|
||||
1. Foo {MD030}
|
||||
1. Bar {MD030}
|
||||
1. Baz {MD030}
|
||||
|
||||
Ordered lists with children:
|
||||
|
||||
1. Foo {MD030}
|
||||
* Hi
|
||||
1. Bar {MD030}
|
||||
1. Baz {MD030}
|
||||
|
||||
Ordered lists with children (correct spacing), and with something other than
|
||||
the first item determining that the entire list has children:
|
||||
|
||||
1. Foo
|
||||
1. Bar
|
||||
* Hi
|
||||
1. Baz
|
||||
Loading…
Add table
Add a link
Reference in a new issue