mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 22:40:13 +01:00
Update MD041/first-line-h1 to ignore leading HTML comments (fixes #37).
This commit is contained in:
parent
15b37d51ff
commit
acd36d5802
8 changed files with 56 additions and 15 deletions
4
test/md041-ignore-leading-comments-combined.json
Normal file
4
test/md041-ignore-leading-comments-combined.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"default": true,
|
||||
"first-line-h1": true
|
||||
}
|
||||
11
test/md041-ignore-leading-comments-combined.md
Normal file
11
test/md041-ignore-leading-comments-combined.md
Normal 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
|
||||
4
test/md041-ignore-leading-comments-violation.json
Normal file
4
test/md041-ignore-leading-comments-violation.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"default": true,
|
||||
"first-line-h1": true
|
||||
}
|
||||
11
test/md041-ignore-leading-comments-violation.md
Normal file
11
test/md041-ignore-leading-comments-violation.md
Normal 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
|
||||
4
test/md041-ignore-leading-comments.json
Normal file
4
test/md041-ignore-leading-comments.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"default": true,
|
||||
"first-line-h1": true
|
||||
}
|
||||
13
test/md041-ignore-leading-comments.md
Normal file
13
test/md041-ignore-leading-comments.md
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue