mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
66 lines
894 B
Markdown
66 lines
894 B
Markdown
|
|
# HTML Comments
|
||
|
|
|
||
|
|
## Block Comments
|
||
|
|
|
||
|
|
<https://spec.commonmark.org/0.29/#html-blocks>
|
||
|
|
|
||
|
|
<!-- *comment * -->
|
||
|
|
|
||
|
|
<!-- *comment * -->text
|
||
|
|
|
||
|
|
<!-- *comment * -->
|
||
|
|
|
||
|
|
<!-- *code * -->
|
||
|
|
|
||
|
|
<!-- *comment *
|
||
|
|
*comment * -->
|
||
|
|
|
||
|
|
<!-- *comment *
|
||
|
|
*comment *
|
||
|
|
*comment * -->
|
||
|
|
|
||
|
|
<!--> *{MD037} * -->
|
||
|
|
|
||
|
|
<!---> *{MD037} * -->
|
||
|
|
|
||
|
|
<!-- *comment * --->
|
||
|
|
|
||
|
|
<!-- -- *comment * -->
|
||
|
|
|
||
|
|
<!-- *comment * -- -->
|
||
|
|
|
||
|
|
## Inline Comments
|
||
|
|
|
||
|
|
<https://spec.commonmark.org/0.29/#html-comment>
|
||
|
|
|
||
|
|
t<!-- *comment * -->
|
||
|
|
|
||
|
|
t<!-- *comment * -->text
|
||
|
|
|
||
|
|
t<!-- *comment * -->
|
||
|
|
|
||
|
|
t<!-- *code * -->
|
||
|
|
|
||
|
|
t<!-- *comment *
|
||
|
|
*comment * -->
|
||
|
|
|
||
|
|
t<!-- *comment *
|
||
|
|
*comment *
|
||
|
|
*comment * -->
|
||
|
|
|
||
|
|
t<!--> *{MD037} * -->
|
||
|
|
|
||
|
|
t<!---> *{MD037} * -->
|
||
|
|
|
||
|
|
t<!-- *{MD037} * --->
|
||
|
|
|
||
|
|
t<!-- -- *{MD037} * -->
|
||
|
|
|
||
|
|
t<!-- *{MD037} * -- -->
|
||
|
|
|
||
|
|
## 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.
|