mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02: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
|
@ -395,7 +395,7 @@ module.exports.flattenLists = function flattenLists(tokens) {
|
|||
else if (token.type === "blockquote_close") {
|
||||
nesting = nestingStack.pop();
|
||||
}
|
||||
else if (token.map) {
|
||||
if (token.map) {
|
||||
// Track last token with map
|
||||
lastWithMap = token;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue