mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update helpers.flattenLists to provide correct lastLineIndex for lists with an empty last item (fixes #529).
This commit is contained in:
parent
4560ccc1cd
commit
85d720cefc
6 changed files with 175 additions and 10 deletions
49
test/lists-incomplete.md
Normal file
49
test/lists-incomplete.md
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
# Lists Incomplete
|
||||
|
||||
Text
|
||||
|
||||
- Item
|
||||
-
|
||||
|
||||
Text
|
||||
|
||||
-
|
||||
- Item
|
||||
|
||||
Text
|
||||
|
||||
- Item
|
||||
-
|
||||
- Item
|
||||
|
||||
Text
|
||||
|
||||
- Item
|
||||
-
|
||||
-
|
||||
|
||||
Text
|
||||
|
||||
1. Item
|
||||
1.
|
||||
|
||||
Text
|
||||
|
||||
1.
|
||||
1. Item
|
||||
|
||||
Text
|
||||
|
||||
1. Item
|
||||
1.
|
||||
1. Item
|
||||
|
||||
Text
|
||||
|
||||
1. Item
|
||||
1.
|
||||
1.
|
||||
|
||||
Text
|
||||
|
||||
{MD047}
|
||||
Loading…
Add table
Add a link
Reference in a new issue