mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Handle un-closed HTML comments in a way that does not trigger MD047/single-trailing-newline (fixes #187).
This commit is contained in:
parent
0b9b74ccfd
commit
61c92e5997
4 changed files with 9 additions and 2 deletions
|
|
@ -1329,7 +1329,8 @@ function clearHtmlCommentTextValid(test) {
|
|||
"<!-- --><!-- -->",
|
||||
"text<!-- -->text<!-- -->text",
|
||||
"<!--",
|
||||
" \\"
|
||||
" \\",
|
||||
""
|
||||
];
|
||||
const actual = helpers.clearHtmlCommentText(validComments.join("\n"));
|
||||
const expected = validResult.join("\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue