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) {
if (token.type === "paragraph_open") {
return function inParagraph(t) {
if ((t.type === "inline") &&
(t.children.length === 3) &&
((t.children[0].type === "strong_open") ||
(t.children[0].type === "em_open")) &&
(t.children[1].type === "text") &&
!re.test(t.children[1].content)) {
errors.addContext(t.lineNumber, t.children[1].content);
// Always paragraph_open/inline/paragraph_close,
// omit (t.type === "inline")
var children = t.children.filter(function notEmptyText(child) {
return (child.type !== "text") || (child.content !== "");
});
if ((children.length === 3) &&
((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;
};