mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01: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;
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
|||
14
package.json
14
package.json
|
|
@ -21,18 +21,18 @@
|
|||
"example": "cd example && node standalone.js && grunt markdownlint --force && gulp markdownlint"
|
||||
},
|
||||
"dependencies": {
|
||||
"markdown-it": "^5.1.0"
|
||||
"markdown-it": "^7.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browserify": "^13.0.0",
|
||||
"cpy-cli": "^1.0.0",
|
||||
"eslint": "^2.2.0",
|
||||
"glob": "^7.0.0",
|
||||
"istanbul": "^0.4.2",
|
||||
"browserify": "^13.0.1",
|
||||
"cpy-cli": "^1.0.1",
|
||||
"eslint": "^2.13.1",
|
||||
"glob": "^7.0.5",
|
||||
"istanbul": "^0.4.4",
|
||||
"nodeunit": "^0.9.1",
|
||||
"q": "^1.4.1",
|
||||
"rimraf": "^2.5.2",
|
||||
"uglify-js": "^2.6.2"
|
||||
"uglify-js": "^2.6.4"
|
||||
},
|
||||
"keywords": [
|
||||
"markdown",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
Text text text
|
||||
|
||||
---
|
||||
layout: post
|
||||
layout: post {MD002} {MD022}
|
||||
hard: tab {MD010}
|
||||
title: embedded
|
||||
---
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ Header 1
|
|||
|
||||
Header 2 {MD022}
|
||||
----------------
|
||||
Some text
|
||||
Header 3 {MD022}
|
||||
Some text {MD022} {MD025}
|
||||
Header 3
|
||||
================
|
||||
Some text
|
||||
Header 4 {MD022}
|
||||
Some text {MD022} {MD025}
|
||||
Header 4
|
||||
================
|
||||
Some text
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue