mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 22:40:13 +01:00
Change HTML comment content sanitization to avoid breaking list item indent, respect table cell content rules (fixes #563).
This commit is contained in:
parent
7f8962c882
commit
f0bb4c639b
8 changed files with 593 additions and 63 deletions
43
test/html-comment-in-code-and-table.md
Normal file
43
test/html-comment-in-code-and-table.md
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# HTML Comment in Code and Table
|
||||
|
||||
`{MD038} `
|
||||
|
||||
<!-- `ignored ` -->
|
||||
|
||||
```text
|
||||
<!-- `ignored ` -->
|
||||
```
|
||||
|
||||
<!-- `ignored ` -->
|
||||
|
||||
| Table |
|
||||
|------------|
|
||||
| `{MD038} ` |
|
||||
|
||||
* item
|
||||
|
||||
`{MD038} `
|
||||
|
||||
* item
|
||||
|
||||
<!-- `ignored ` -->
|
||||
|
||||
* item
|
||||
|
||||
```text
|
||||
<!-- `ignored ` -->
|
||||
```
|
||||
|
||||
* item
|
||||
|
||||
<!-- `ignored ` -->
|
||||
|
||||
* item
|
||||
|
||||
| Table |
|
||||
|------------|
|
||||
| `{MD038} ` |
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"code-block-style": false
|
||||
} -->
|
||||
Loading…
Add table
Add a link
Reference in a new issue