mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Ignore the content of (valid) HTML comments when linting (fixes #64).
This commit is contained in:
parent
8c34383f80
commit
0a678d25c1
6 changed files with 240 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue