mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Update MD041/first-line-heading to recognize HTML headings (fixes #366).
This commit is contained in:
parent
c7d2416f95
commit
1d042aa3fd
7 changed files with 69 additions and 4 deletions
7
test/h1-as-top-level-heading.md
Normal file
7
test/h1-as-top-level-heading.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<h1>H1 as Top-Level Heading</h1>
|
||||
|
||||
Text
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"no-inline-html": false
|
||||
} -->
|
||||
7
test/h1-image-as-top-level-heading.md
Normal file
7
test/h1-image-as-top-level-heading.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<h1 align="center"><img src="https://placekitten.com/300/150"/></h1>
|
||||
|
||||
Text
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"no-inline-html": false
|
||||
} -->
|
||||
10
test/h2-as-top-level-heading.md
Normal file
10
test/h2-as-top-level-heading.md
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<H2>H2 as Top-Level Heading</H2>
|
||||
|
||||
Text
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"first-line-heading": {
|
||||
"level": 2
|
||||
},
|
||||
"no-inline-html": false
|
||||
} -->
|
||||
7
test/h3-as-top-level-heading.md
Normal file
7
test/h3-as-top-level-heading.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<h3>H3 as Top-Level Heading {MD041}</h3>
|
||||
|
||||
Text
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"no-inline-html": false
|
||||
} -->
|
||||
Loading…
Add table
Add a link
Reference in a new issue