mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-19 07:20:13 +01:00
Replace helpers.overlapsAnyRange with .withinAnyRange, update code/tests for resulting behavior.
This commit is contained in:
parent
cb943a8718
commit
6718944b0f
10 changed files with 70 additions and 53 deletions
|
|
@ -109,8 +109,10 @@ text
|
|||
|
||||
Text `code <element> code` text
|
||||
|
||||
Text `code <element ` `attribute="value"/> code` text {MD038}
|
||||
|
||||
```lang
|
||||
code {MD046:112}
|
||||
code {MD046:114}
|
||||
|
||||
<element>
|
||||
```
|
||||
|
|
|
|||
|
|
@ -18,4 +18,4 @@ javascript {MD044}
|
|||
|
||||
<javascript/>
|
||||
|
||||
<code>javascript</code>
|
||||
<code>javascript</code> {MD044}
|
||||
|
|
|
|||
|
|
@ -19934,7 +19934,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
9,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 120,
|
||||
lineNumber: 122,
|
||||
ruleDescription: 'Inline HTML',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033',
|
||||
ruleNames: [
|
||||
|
|
@ -19942,6 +19942,26 @@ Generated by [AVA](https://avajs.dev).
|
|||
'no-inline-html',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '`code <element `',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
6,
|
||||
16,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 14,
|
||||
editColumn: 7,
|
||||
insertText: 'code <element',
|
||||
},
|
||||
lineNumber: 112,
|
||||
ruleDescription: 'Spaces inside code span elements',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038',
|
||||
ruleNames: [
|
||||
'MD038',
|
||||
'no-space-in-code',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: indented; Actual: fenced',
|
||||
|
|
@ -19960,7 +19980,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
errorDetail: 'Expected: indented; Actual: fenced',
|
||||
errorRange: null,
|
||||
fixInfo: null,
|
||||
lineNumber: 112,
|
||||
lineNumber: 114,
|
||||
ruleDescription: 'Code block style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md046',
|
||||
ruleNames: [
|
||||
|
|
@ -20080,8 +20100,10 @@ Generated by [AVA](https://avajs.dev).
|
|||
␊
|
||||
Text \`code <element> code\` text␊
|
||||
␊
|
||||
Text \`code <element\` \`attribute="value"/> code\` text {MD038}␊
|
||||
␊
|
||||
\`\`\`lang␊
|
||||
code {MD046:112}␊
|
||||
code {MD046:114}␊
|
||||
␊
|
||||
<element>␊
|
||||
\`\`\`␊
|
||||
|
|
@ -31791,6 +31813,26 @@ Generated by [AVA](https://avajs.dev).
|
|||
'proper-names',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: JavaScript; Actual: javascript',
|
||||
errorRange: [
|
||||
7,
|
||||
10,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 10,
|
||||
editColumn: 7,
|
||||
insertText: 'JavaScript',
|
||||
},
|
||||
lineNumber: 21,
|
||||
ruleDescription: 'Proper names should have the correct capitalization',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044',
|
||||
ruleNames: [
|
||||
'MD044',
|
||||
'proper-names',
|
||||
],
|
||||
},
|
||||
],
|
||||
fixed: `# Proper Names No HTML␊
|
||||
␊
|
||||
|
|
@ -31812,7 +31854,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
␊
|
||||
<javascript/>␊
|
||||
␊
|
||||
<code>javascript</code>␊
|
||||
<code>JavaScript</code> {MD044}␊
|
||||
`,
|
||||
}
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue