Hide the content of inline configuration HTML comments from the linting process to avoid false positives.

This commit is contained in:
David Anson 2022-06-04 22:59:19 -07:00
parent 535aa1a2ee
commit bbec8c5c1e
7 changed files with 80 additions and 40 deletions

View file

@ -17397,6 +17397,46 @@ Generated by [AVA](https://avajs.dev).
`,
}
## inline-configure-file-violations.md
> Snapshot 1
{
errors: [
{
errorContext: '* with *',
errorDetail: null,
errorRange: [
10,
8,
],
fixInfo: {
deleteCount: 8,
editColumn: 10,
insertText: '*with*',
},
lineNumber: 3,
ruleDescription: 'Spaces inside emphasis markers',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037',
ruleNames: [
'MD037',
'no-space-in-emphasis',
],
},
],
fixed: `# Inline Configure File Violations␊
Emphasis *with* spaces {MD037}␊
Trailing spaces: ␊
<!-- markdownlint-configure-file {␊
"comment": "emphasis * with * spaces",␊
"no-trailing-spaces": false␊
} -->␊
`,
}
## inline-disable-enable-file.md
> Snapshot 1