mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Update dependencies: markdown-it to 8.4.0.
This commit is contained in:
parent
3cecb86f9b
commit
0b2c810389
2 changed files with 12 additions and 8 deletions
18
lib/rules.js
18
lib/rules.js
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
"example": "cd example && node standalone.js && grunt markdownlint --force && gulp markdownlint"
|
||||
},
|
||||
"dependencies": {
|
||||
"markdown-it": "8.3.2"
|
||||
"markdown-it": "8.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browserify": "^14.5.0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue