mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Update MD037/no-space-in-emphasis to ignore the content of HTML attributes (fixes #540).
This commit is contained in:
parent
48f47b5214
commit
1154ab483b
5 changed files with 209 additions and 39 deletions
|
|
@ -37062,6 +37062,86 @@ Generated by [AVA](https://avajs.dev).
|
|||
|
||||
{
|
||||
errors: [
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Element: b',
|
||||
errorRange: [
|
||||
10,
|
||||
3,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 361,
|
||||
ruleDescription: 'Inline HTML',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033',
|
||||
ruleNames: [
|
||||
'MD033',
|
||||
'no-inline-html',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Element: p',
|
||||
errorRange: [
|
||||
1,
|
||||
3,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 363,
|
||||
ruleDescription: 'Inline HTML',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033',
|
||||
ruleNames: [
|
||||
'MD033',
|
||||
'no-inline-html',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Element: p',
|
||||
errorRange: [
|
||||
10,
|
||||
39,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 367,
|
||||
ruleDescription: 'Inline HTML',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033',
|
||||
ruleNames: [
|
||||
'MD033',
|
||||
'no-inline-html',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Element: img',
|
||||
errorRange: [
|
||||
10,
|
||||
41,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 369,
|
||||
ruleDescription: 'Inline HTML',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033',
|
||||
ruleNames: [
|
||||
'MD033',
|
||||
'no-inline-html',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Element: p',
|
||||
errorRange: [
|
||||
10,
|
||||
24,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 371,
|
||||
ruleDescription: 'Inline HTML',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033',
|
||||
ruleNames: [
|
||||
'MD033',
|
||||
'no-inline-html',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '* emphasis *',
|
||||
errorDetail: null,
|
||||
|
|
@ -38582,6 +38662,66 @@ Generated by [AVA](https://avajs.dev).
|
|||
'no-space-in-emphasis',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '* HTML *',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
20,
|
||||
8,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 8,
|
||||
editColumn: 20,
|
||||
insertText: '*HTML*',
|
||||
},
|
||||
lineNumber: 361,
|
||||
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',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '* HTML *',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
17,
|
||||
8,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 8,
|
||||
editColumn: 17,
|
||||
insertText: '*HTML*',
|
||||
},
|
||||
lineNumber: 364,
|
||||
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',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '* HTML *',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
34,
|
||||
8,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 8,
|
||||
editColumn: 34,
|
||||
insertText: '*HTML*',
|
||||
},
|
||||
lineNumber: 371,
|
||||
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: `# Heading␊
|
||||
␊
|
||||
|
|
@ -38942,6 +39082,18 @@ Generated by [AVA](https://avajs.dev).
|
|||
_~/.ssh/id_rsa_ and _emphasis_␊
|
||||
␊
|
||||
Partial *em*phasis of a *wo*rd.␊
|
||||
␊
|
||||
Emphasis <b>inside *HTML* content</b> {MD033} {MD037}␊
|
||||
␊
|
||||
<p> {MD033}␊
|
||||
Emphasis inside *HTML* content {MD037}␊
|
||||
</p>␊
|
||||
␊
|
||||
Emphasis <p data="inside * attribute * content"></p> {MD033}␊
|
||||
␊
|
||||
Emphasis <img alt="inside * attribute * content"/> {MD033}␊
|
||||
␊
|
||||
Emphasis <p data="* attribute *">*HTML*</p> {MD033} {MD037}␊
|
||||
`,
|
||||
}
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue