Update helpers.flattenLists to provide correct lastLineIndex for lists with an empty last item (fixes #529).

This commit is contained in:
David Anson 2022-06-07 22:16:34 -07:00
parent 4560ccc1cd
commit 85d720cefc
6 changed files with 175 additions and 10 deletions

49
test/lists-incomplete.md Normal file
View 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}