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:
David Anson 2016-06-23 22:41:47 -07:00
parent 48959afc33
commit c1956afd66
4 changed files with 15 additions and 13 deletions

View file

@ -467,7 +467,6 @@ module.exports = [
if ((token.map[0] - prevMaxLineIndex) === 0) { if ((token.map[0] - prevMaxLineIndex) === 0) {
errors.push(token.lineNumber); errors.push(token.lineNumber);
} }
prevHeadingLineNumber = token.lineNumber;
} else if (token.type === "heading_close") { } else if (token.type === "heading_close") {
needBlankLine = true; needBlankLine = true;
} else if (token.type === "inline") { } else if (token.type === "inline") {
@ -487,6 +486,9 @@ module.exports = [
} }
prevMaxLineIndex = Math.max(prevMaxLineIndex, token.map[1]); prevMaxLineIndex = Math.max(prevMaxLineIndex, token.map[1]);
} }
if (token.type === "heading_open") {
prevHeadingLineNumber = token.lineNumber;
}
}); });
} }
}, },

View file

@ -21,18 +21,18 @@
"example": "cd example && node standalone.js && grunt markdownlint --force && gulp markdownlint" "example": "cd example && node standalone.js && grunt markdownlint --force && gulp markdownlint"
}, },
"dependencies": { "dependencies": {
"markdown-it": "^5.1.0" "markdown-it": "^7.0.0"
}, },
"devDependencies": { "devDependencies": {
"browserify": "^13.0.0", "browserify": "^13.0.1",
"cpy-cli": "^1.0.0", "cpy-cli": "^1.0.1",
"eslint": "^2.2.0", "eslint": "^2.13.1",
"glob": "^7.0.0", "glob": "^7.0.5",
"istanbul": "^0.4.2", "istanbul": "^0.4.4",
"nodeunit": "^0.9.1", "nodeunit": "^0.9.1",
"q": "^1.4.1", "q": "^1.4.1",
"rimraf": "^2.5.2", "rimraf": "^2.5.2",
"uglify-js": "^2.6.2" "uglify-js": "^2.6.4"
}, },
"keywords": [ "keywords": [
"markdown", "markdown",

View file

@ -1,7 +1,7 @@
Text text text Text text text
--- ---
layout: post layout: post {MD002} {MD022}
hard: tab {MD010} hard: tab {MD010}
title: embedded title: embedded
--- ---

View file

@ -3,11 +3,11 @@ Header 1
Header 2 {MD022} Header 2 {MD022}
---------------- ----------------
Some text Some text {MD022} {MD025}
Header 3 {MD022} Header 3
================ ================
Some text Some text {MD022} {MD025}
Header 4 {MD022} Header 4
================ ================
Some text Some text