mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Change behavior of un-terminated HTML comments to be treated as text (fixes #252).
This commit is contained in:
parent
b87094e33d
commit
4ff6f2f4b1
3 changed files with 17 additions and 5 deletions
|
|
@ -1644,6 +1644,7 @@ tape("clearHtmlCommentTextValid", (test) => {
|
|||
"-->text",
|
||||
"<!--text--><!--text-->",
|
||||
"text<!--text-->text<!--text-->text",
|
||||
"text<!--text > text <!-->text",
|
||||
"<!--",
|
||||
"text"
|
||||
];
|
||||
|
|
@ -1680,9 +1681,9 @@ tape("clearHtmlCommentTextValid", (test) => {
|
|||
"-->text",
|
||||
"<!-- --><!-- -->",
|
||||
"text<!-- -->text<!-- -->text",
|
||||
"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