mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update MD044/proper-names to ignore the content of HTML comments when its html_elements parameter is false (fixes #832).
This commit is contained in:
parent
1b0e783c33
commit
dc4acff067
6 changed files with 68 additions and 2 deletions
|
|
@ -5794,7 +5794,7 @@ module.exports = {
|
|||
}, function (token) {
|
||||
var children = token.children;
|
||||
if (!includeHtmlElements && token.type === "htmlFlow") {
|
||||
children = children.slice(1, -1);
|
||||
children = children[0] && children[0].text === "<!--" ? [] : children.slice(1, -1);
|
||||
}
|
||||
return children.filter(function (t) {
|
||||
return !ignoredChildTypes.has(t.type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue