mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Hide the content of inline configuration HTML comments from the linting process to avoid false positives.
This commit is contained in:
parent
535aa1a2ee
commit
bbec8c5c1e
7 changed files with 80 additions and 40 deletions
|
|
@ -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
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue