Ignore the content of (valid) HTML comments when linting (fixes #64).

This commit is contained in:
David Anson 2017-07-16 23:08:47 -07:00
parent 8c34383f80
commit 0a678d25c1
6 changed files with 240 additions and 2 deletions

44
test/ignore-comments.md Normal file
View 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