Ignore the content of (valid) HTML comments when linting (fixes #64).

This commit is contained in:
David Anson 2017-07-16 23:08:47 -07:00
parent 8c34383f80
commit 0a678d25c1
6 changed files with 240 additions and 2 deletions

View file

@ -104,6 +104,8 @@ function lintContent(
}
}
}
// Ignore the content of HTML comments
content = shared.clearHtmlCommentText(content);
// Parse content into tokens and lines
var tokens = md.parse(content, {});
var lines = content.split(shared.newLineRe);