mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-03 14:38:49 +01:00
Implement markdownlint-disable-next-line inline comment (fixes #295).
This commit is contained in:
parent
bd63c57fde
commit
a6d30cb724
4 changed files with 51 additions and 8 deletions
|
|
@ -155,13 +155,22 @@ appropriate place (HTML comments don't appear in the final markup):
|
|||
|
||||
* Disable all rules: `<!-- markdownlint-disable -->`
|
||||
* Enable all rules: `<!-- markdownlint-enable -->`
|
||||
* Disable all rules for the next line only: `<!-- markdownlint-disable-next-line -->`
|
||||
* Disable one or more rules by name: `<!-- markdownlint-disable MD001 MD005 -->`
|
||||
* Enable one or more rules by name: `<!-- markdownlint-enable MD001 MD005 -->`
|
||||
* Disable one or more rules by name for the next line only: `<!-- markdownlint-disable-next-line MD001 MD005 -->`
|
||||
* Capture the current rule configuration: `<!-- markdownlint-capture -->`
|
||||
* Restore the captured rule configuration: `<!-- markdownlint-restore -->`
|
||||
|
||||
For example:
|
||||
|
||||
```markdown
|
||||
<!-- markdownlint-disable-next-line no-space-in-emphasis -->
|
||||
deliberate space * in * emphasis
|
||||
```
|
||||
|
||||
Or:
|
||||
|
||||
```markdown
|
||||
<!-- markdownlint-disable no-space-in-emphasis -->
|
||||
deliberate space * in * emphasis
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue