Change HTML comment content sanitization to avoid breaking list item indent, respect table cell content rules (fixes #563).

This commit is contained in:
David Anson 2022-10-14 20:59:42 -07:00
parent 7f8962c882
commit f0bb4c639b
8 changed files with 593 additions and 63 deletions

View 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
} -->