-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add snippets for markdownlint inline configuration (fixes #82).
- Loading branch information
1 parent
a676bb4
commit 4b1ed91
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"insertMarkdownLintDisableComment": { | ||
"prefix": "markdownlint-disable", | ||
"body": "<!-- markdownlint-disable $1 -->", | ||
"description": "Disables one or more markdownlint rules by name (e.g. MD013), alias (e.g. first-heading-h1), or tag (e.g. indentation). Multiple rules are space-delimited (e.g. MD018 MD019). If no rules are specified, then all rules are disabled unconditionally. Takes effect starting with the line this comment is on." | ||
}, | ||
"insertMarkdownLintEnableComment": { | ||
"prefix": "markdownlint-enable", | ||
"body": "<!-- markdownlint-enable $1 -->", | ||
"description": "Enables one or more markdownlint rules by name (e.g. MD013), alias (e.g. first-heading-h1), or tag (e.g. indentation). Multiple rules are space-delimited (e.g. MD018 MD019). If no rules are specified, then all rules are enabled unconditionally. Takes effect starting with the line this comment is on." | ||
}, | ||
|
||
"insertMarkdownLintCaptureComment": { | ||
"prefix": "markdownlint-capture", | ||
"body": "<!-- markdownlint-capture -->", | ||
"description": "Captures the current markdownlint rule configuration. Takes effect on the line this comment is on." | ||
}, | ||
"insertMarkdownLintRestoreComment": { | ||
"prefix": "markdownlint-restore", | ||
"body": "<!-- markdownlint-restore -->", | ||
"description": "Restores the most recently captured markdownlint rule configuration, which by default is the document's initial configuration (i.e. as if every document started with `<!-- markdownlint-capture -->`). Takes effect on the line this comment is on." | ||
}, | ||
} |