mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Hide the content of inline configuration HTML comments from the linting process to avoid false positives.
This commit is contained in:
parent
535aa1a2ee
commit
bbec8c5c1e
7 changed files with 80 additions and 40 deletions
|
|
@ -155,9 +155,9 @@ test("clearHtmlCommentTextEmbedded", (t) => {
|
|||
];
|
||||
const embeddedResult = [
|
||||
"text<!--....-->text",
|
||||
"<!-- markdownlint-disable MD010 -->",
|
||||
"<!--............................-->",
|
||||
"text<!--....-->text",
|
||||
"text<!-- markdownlint-disable MD010 -->text",
|
||||
"text<!--............................-->text",
|
||||
"text<!--....-->text"
|
||||
];
|
||||
const actual = helpers.clearHtmlCommentText(embeddedComments.join("\n"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue