mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Update MD038/no-space-in-code to allow code spans with only spaces (fixes #1481).
This commit is contained in:
parent
2d2fafc58d
commit
90cf515ff0
7 changed files with 56 additions and 68 deletions
|
|
@ -50127,26 +50127,6 @@ Generated by [AVA](https://avajs.dev).
|
|||
'no-space-in-code',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '` `',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
14,
|
||||
3,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 1,
|
||||
editColumn: 15,
|
||||
insertText: '',
|
||||
},
|
||||
lineNumber: 13,
|
||||
ruleDescription: 'Spaces inside code span elements',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||||
ruleNames: [
|
||||
'MD038',
|
||||
'no-space-in-code',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '`` code``',
|
||||
errorDetail: null,
|
||||
|
|
@ -50347,26 +50327,6 @@ Generated by [AVA](https://avajs.dev).
|
|||
'no-space-in-code',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '` `',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
13,
|
||||
6,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 4,
|
||||
editColumn: 14,
|
||||
insertText: '',
|
||||
},
|
||||
lineNumber: 109,
|
||||
ruleDescription: 'Spaces inside code span elements',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||||
ruleNames: [
|
||||
'MD038',
|
||||
'no-space-in-code',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '` code `',
|
||||
errorDetail: null,
|
||||
|
|
@ -50379,7 +50339,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
editColumn: 37,
|
||||
insertText: 'code',
|
||||
},
|
||||
lineNumber: 111,
|
||||
lineNumber: 114,
|
||||
ruleDescription: 'Spaces inside code span elements',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||||
ruleNames: [
|
||||
|
|
@ -50399,7 +50359,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
editColumn: 38,
|
||||
insertText: 'code',
|
||||
},
|
||||
lineNumber: 113,
|
||||
lineNumber: 116,
|
||||
ruleDescription: 'Spaces inside code span elements',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||||
ruleNames: [
|
||||
|
|
@ -50419,7 +50379,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
editColumn: 31,
|
||||
insertText: 'code',
|
||||
},
|
||||
lineNumber: 115,
|
||||
lineNumber: 118,
|
||||
ruleDescription: 'Spaces inside code span elements',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||||
ruleNames: [
|
||||
|
|
@ -50439,7 +50399,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
editColumn: 9,
|
||||
insertText: ' ` multiple leading {MD038}',
|
||||
},
|
||||
lineNumber: 129,
|
||||
lineNumber: 132,
|
||||
ruleDescription: 'Spaces inside code span elements',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||||
ruleNames: [
|
||||
|
|
@ -50459,7 +50419,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
editColumn: 1,
|
||||
insertText: 'not allowed ` ',
|
||||
},
|
||||
lineNumber: 136,
|
||||
lineNumber: 139,
|
||||
ruleDescription: 'Spaces inside code span elements',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||||
ruleNames: [
|
||||
|
|
@ -50576,7 +50536,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
␊
|
||||
empty \`\` codespan element␊
|
||||
␊
|
||||
single space \`\` codespan element {MD038}␊
|
||||
single space \` \` codespan element␊
|
||||
␊
|
||||
\`,\`, \`.\`␊
|
||||
␊
|
||||
|
|
@ -50672,7 +50632,10 @@ Generated by [AVA](https://avajs.dev).
|
|||
␊
|
||||
Single start and end space: \` code \` (explicitly allowed/trimmed by the specification)␊
|
||||
␊
|
||||
All spaces: \`\` {MD038}␊
|
||||
All spaces: \` \` \` \` \` \` \` \`␊
|
||||
␊
|
||||
All line endings: \`␊
|
||||
\`␊
|
||||
␊
|
||||
Double start and single end space: \`code\` {MD038}␊
|
||||
␊
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
empty `` codespan element
|
||||
|
||||
single space ` ` codespan element {MD038}
|
||||
single space ` ` codespan element
|
||||
|
||||
`,`, `.`
|
||||
|
||||
|
|
@ -106,7 +106,10 @@ No start space, end space: `code ` {MD038}
|
|||
|
||||
Single start and end space: ` code ` (explicitly allowed/trimmed by the specification)
|
||||
|
||||
All spaces: ` ` {MD038}
|
||||
All spaces: ` ` ` ` ` ` ` `
|
||||
|
||||
All line endings: `
|
||||
`
|
||||
|
||||
Double start and single end space: ` code ` {MD038}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue