markdownlint/test/html-comments.md

894 B

HTML Comments

Block Comments

https://spec.commonmark.org/0.29/#html-blocks

text
<!-- *code * -->
*{MD037} * --> *{MD037} * -->

Inline Comments

https://spec.commonmark.org/0.29/#html-comment

t

ttext

t

t<!-- *code * -->

t

t

t *{MD037} * -->

t *{MD037} * -->

t

t

t

Notes

It's important that the rule used above is one that calls helpers.forEachLine so markdown-it doesn't ignore any incorrectly-remaining comment blocks.