Update dependencies: markdown-it to 8.4.0.

This commit is contained in:
David Anson 2017-12-15 23:31:05 -08:00
parent 3cecb86f9b
commit 0b2c810389
2 changed files with 12 additions and 8 deletions

View file

@ -936,13 +936,17 @@ module.exports = [
function base(token) { function base(token) {
if (token.type === "paragraph_open") { if (token.type === "paragraph_open") {
return function inParagraph(t) { return function inParagraph(t) {
if ((t.type === "inline") && // Always paragraph_open/inline/paragraph_close,
(t.children.length === 3) && // omit (t.type === "inline")
((t.children[0].type === "strong_open") || var children = t.children.filter(function notEmptyText(child) {
(t.children[0].type === "em_open")) && return (child.type !== "text") || (child.content !== "");
(t.children[1].type === "text") && });
!re.test(t.children[1].content)) { if ((children.length === 3) &&
errors.addContext(t.lineNumber, t.children[1].content); ((children[0].type === "strong_open") ||
(children[0].type === "em_open")) &&
(children[1].type === "text") &&
!re.test(children[1].content)) {
errors.addContext(t.lineNumber, children[1].content);
} }
return base; return base;
}; };

View file

@ -23,7 +23,7 @@
"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": "8.3.2" "markdown-it": "8.4.0"
}, },
"devDependencies": { "devDependencies": {
"browserify": "^14.5.0", "browserify": "^14.5.0",