mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Update dependencies: markdown-it to 7.0.0, browserify to 13.0.1, cpy-cli to 1.0.1, eslint to 2.13.1, glob to 7.0.5, istanbul to 0.4.4, uglify-js to 2.6.4.
Handle new support for multi-line setext headers.
This commit is contained in:
parent
48959afc33
commit
c1956afd66
4 changed files with 15 additions and 13 deletions
|
@ -467,7 +467,6 @@ module.exports = [
|
|||
if ((token.map[0] - prevMaxLineIndex) === 0) {
|
||||
errors.push(token.lineNumber);
|
||||
}
|
||||
prevHeadingLineNumber = token.lineNumber;
|
||||
} else if (token.type === "heading_close") {
|
||||
needBlankLine = true;
|
||||
} else if (token.type === "inline") {
|
||||
|
@ -487,6 +486,9 @@ module.exports = [
|
|||
}
|
||||
prevMaxLineIndex = Math.max(prevMaxLineIndex, token.map[1]);
|
||||
}
|
||||
if (token.type === "heading_open") {
|
||||
prevHeadingLineNumber = token.lineNumber;
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue