mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-03-05 18:10:15 +01:00
Add support for inline comments markdownlint-capture/markdownlint-restore (fixes #194).
This commit is contained in:
parent
64351f73be
commit
65052f6200
5 changed files with 167 additions and 15 deletions
4
test/inline-capture-restore.json
Normal file
4
test/inline-capture-restore.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"default": true,
|
||||
"no-hard-tabs": false
|
||||
}
|
||||
118
test/inline-capture-restore.md
Normal file
118
test/inline-capture-restore.md
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
# Inline Capture/Restore
|
||||
|
||||
hard tab
|
||||
space * in * emphasis {MD037}
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-disable -->
|
||||
hard tab
|
||||
space * in * emphasis
|
||||
space ` in ` code
|
||||
<!-- markdownlint-restore -->
|
||||
|
||||
hard tab
|
||||
space * in * emphasis {MD037}
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-disable no-space-in-emphasis -->
|
||||
|
||||
hard tab
|
||||
space * in * emphasis
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-disable -->
|
||||
hard tab
|
||||
space * in * emphasis
|
||||
space ` in ` code
|
||||
<!-- markdownlint-restore -->
|
||||
|
||||
hard tab
|
||||
space * in * emphasis {MD037}
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-disable no-space-in-emphasis -->
|
||||
|
||||
hard tab
|
||||
space * in * emphasis
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-capture -->
|
||||
<!-- markdownlint-disable -->
|
||||
hard tab
|
||||
space * in * emphasis
|
||||
space ` in ` code
|
||||
<!-- markdownlint-restore -->
|
||||
|
||||
hard tab
|
||||
space * in * emphasis
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-enable no-hard-tabs -->
|
||||
|
||||
hard tab {MD010}
|
||||
space * in * emphasis
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-restore -->
|
||||
|
||||
hard tab
|
||||
space * in * emphasis
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-enable no-hard-tabs -->
|
||||
|
||||
hard tab {MD010}
|
||||
space * in * emphasis
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-capture -->
|
||||
|
||||
hard tab {MD010}
|
||||
space * in * emphasis
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-restore -->
|
||||
|
||||
hard tab {MD010}
|
||||
space * in * emphasis
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-enable -->
|
||||
|
||||
hard tab {MD010}
|
||||
space * in * emphasis {MD037}
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-restore -->
|
||||
|
||||
hard tab {MD010}
|
||||
space * in * emphasis
|
||||
space ` in ` code {MD038}
|
||||
|
||||
<!-- markdownlint-disable no-space-in-code -->
|
||||
|
||||
hard tab {MD010}
|
||||
space * in * emphasis
|
||||
space ` in ` code
|
||||
|
||||
<!-- markdownlint-capture --><!-- markdownlint-disable -->
|
||||
hard tab
|
||||
space * in * emphasis
|
||||
space ` in ` code
|
||||
<!-- markdownlint-restore -->
|
||||
|
||||
hard tab {MD010}
|
||||
space * in * emphasis
|
||||
space ` in ` code
|
||||
|
||||
<!-- markdownlint-disable no-hard-tabs -->
|
||||
|
||||
hard tab
|
||||
space * in * emphasis
|
||||
space ` in ` code
|
||||
|
||||
<!-- markdownlint-restore --> <!-- markdownlint-enable no-space-in-emphasis -->
|
||||
|
||||
hard tab {MD010}
|
||||
space * in * emphasis {MD037}
|
||||
space ` in ` code
|
||||
Loading…
Add table
Add a link
Reference in a new issue