Update MD041/first-line-h1 to ignore leading HTML comments (fixes #37).

This commit is contained in:
David Anson 2017-02-23 22:08:54 -08:00
parent 15b37d51ff
commit acd36d5802
8 changed files with 56 additions and 15 deletions

View file

@ -0,0 +1,4 @@
{
"default": true,
"first-line-h1": true
}

View file

@ -0,0 +1,11 @@
# Heading # <!-- markdownlint-disable no-hard-tabs -->
Text text text
Embedded tab
Text text text
Trailing space {MD009}
Text text text

View file

@ -0,0 +1,4 @@
{
"default": true,
"first-line-h1": true
}

View file

@ -0,0 +1,11 @@
<!-- markdownlint-disable no-hard-tabs -->
Text text text {MD041}
Embedded tab
Text text text
Trailing space {MD009}
Text text text

View file

@ -0,0 +1,4 @@
{
"default": true,
"first-line-h1": true
}

View file

@ -0,0 +1,13 @@
<!-- markdownlint-disable no-hard-tabs -->
# Heading
Text text text
Embedded tab
Text text text
Trailing space {MD009}
Text text text