mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Allow HTML comments containing "--" even though it is not allowed by the CommonMark specification because it is allowed by the HTML specification and it happens in real life (fixes #996).
This commit is contained in:
parent
d2faf40e6a
commit
6eca6f1c3d
5 changed files with 53 additions and 3 deletions
14
test/front-matter-yaml-in-html-comment.md
Normal file
14
test/front-matter-yaml-in-html-comment.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!--
|
||||
---
|
||||
title: Front Matter YAML in HTML Comment
|
||||
not-md035: |-
|
||||
***
|
||||
* * *
|
||||
description: |-
|
||||
This document has YAML front matter inside an HTML comment.
|
||||
---
|
||||
-->
|
||||
|
||||
# Front Matter YAML in HTML Comment
|
||||
|
||||
Text text text
|
||||
|
|
@ -13866,6 +13866,29 @@ Generated by [AVA](https://avajs.dev).
|
|||
`,
|
||||
}
|
||||
|
||||
## front-matter-yaml-in-html-comment.md
|
||||
|
||||
> Snapshot 1
|
||||
|
||||
{
|
||||
errors: [],
|
||||
fixed: `<!--␊
|
||||
---␊
|
||||
title: Front Matter YAML in HTML Comment␊
|
||||
not-md035: |-␊
|
||||
***␊
|
||||
* * *␊
|
||||
description: |-␊
|
||||
This document has YAML front matter inside an HTML comment.␊
|
||||
---␊
|
||||
-->␊
|
||||
␊
|
||||
# Front Matter YAML in HTML Comment␊
|
||||
␊
|
||||
Text text text␊
|
||||
`,
|
||||
}
|
||||
|
||||
## front-matter.md
|
||||
|
||||
> Snapshot 1
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue