mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-29 20:18:49 +01:00
Update MD018/no-missing-space-atx and MD020/no-missing-space-closed-atx to ignore the content of HTML blocks (fixes #1268).
This commit is contained in:
parent
a80387a0a0
commit
6c8d0fdef8
7 changed files with 76 additions and 8 deletions
13
test/ignore-html-block.md
Normal file
13
test/ignore-html-block.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# ignore-html-block.md
|
||||
|
||||
<style> {MD033}
|
||||
|
||||
##Heading 1
|
||||
|
||||
## Heading 2
|
||||
|
||||
##Heading 3##
|
||||
|
||||
## Heading 4 ##
|
||||
|
||||
</style>
|
||||
|
|
@ -19683,6 +19683,45 @@ Generated by [AVA](https://avajs.dev).
|
|||
`,
|
||||
}
|
||||
|
||||
## ignore-html-block.md
|
||||
|
||||
> Snapshot 1
|
||||
|
||||
{
|
||||
errors: [
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Element: style',
|
||||
errorRange: [
|
||||
1,
|
||||
7,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 3,
|
||||
ruleDescription: 'Inline HTML',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
|
||||
ruleNames: [
|
||||
'MD033',
|
||||
'no-inline-html',
|
||||
],
|
||||
},
|
||||
],
|
||||
fixed: `# ignore-html-block.md␊
|
||||
␊
|
||||
<style> {MD033}␊
|
||||
␊
|
||||
##Heading 1␊
|
||||
␊
|
||||
## Heading 2␊
|
||||
␊
|
||||
##Heading 3##␊
|
||||
␊
|
||||
## Heading 4 ##␊
|
||||
␊
|
||||
</style>␊
|
||||
`,
|
||||
}
|
||||
|
||||
## inconsistent_bullet_indent_same_level.md
|
||||
|
||||
> Snapshot 1
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue