mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update markdown-it dependency to 4.0.1, fix breaking changes.
This commit is contained in:
parent
e305d22cce
commit
c764d2798f
4 changed files with 25 additions and 24 deletions
|
|
@ -514,7 +514,7 @@ module.exports.doc = function doc(test) {
|
|||
var inHeading = false;
|
||||
var rule = null;
|
||||
md.parse(contents, {}).forEach(function forToken(token) {
|
||||
if ((token.type === "heading_open") && (token.hLevel === 2)) {
|
||||
if ((token.type === "heading_open") && (token.tag === "h2")) {
|
||||
inHeading = true;
|
||||
} else if (token.type === "heading_close") {
|
||||
inHeading = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue