mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-03-16 15:06:31 +01:00
Ignore the content of (valid) HTML comments when linting (fixes #64).
This commit is contained in:
parent
8c34383f80
commit
0a678d25c1
6 changed files with 240 additions and 2 deletions
44
test/ignore-comments.md
Normal file
44
test/ignore-comments.md
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# ignore-comments.md
|
||||
|
||||
Hard tab {MD010}
|
||||
|
||||
<!-- Hard tab -->
|
||||
|
||||
<!--Hard tab-->
|
||||
|
||||
<!--
|
||||
Hard tab
|
||||
-->
|
||||
|
||||
<!--
|
||||
Hard tab
|
||||
|
||||
Hard tab
|
||||
-->
|
||||
|
||||
<!--
|
||||
Hard tab {MD010}
|
||||
Invalid--comment
|
||||
Hard tab {MD010}
|
||||
-->
|
||||
|
||||
Te<!-- Hard tab -->xt
|
||||
|
||||
Te<!-- Hard tab -->xt {MD009}
|
||||
|
||||
T<!-- Hard tab -->ex<!-- Hard tab -->t
|
||||
|
||||
Te<!--
|
||||
Hard tab
|
||||
-->xt
|
||||
|
||||
Te<!--
|
||||
Hard tab
|
||||
-->xt {MD009}
|
||||
|
||||
Te<!-- Trailing space
|
||||
-->xt
|
||||
|
||||
<!-- markdownlint-disable MD010 -->
|
||||
|
||||
Hard tab
|
||||
Loading…
Add table
Add a link
Reference in a new issue