mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Update MD034/no-bare-urls to restore per-sibling scan (vs. all-element scan) and ignore tokens inside an htmlFlow context.
This commit is contained in:
parent
a084c2525c
commit
739cfb6fe2
6 changed files with 123 additions and 56 deletions
|
|
@ -70,12 +70,12 @@ https://example.com
|
|||
|
||||
<div>
|
||||
|
||||
https://example.com
|
||||
https://example.com {MD034}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
https://example.com
|
||||
https://example.com {MD034}
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ Text
|
|||
|
||||
## Heading 2b {MD019} {MD022}
|
||||
- Text *text* text * text * text ** text ** text `text` text ` text ` text {MD004} {MD007} {MD032} {MD037} {MD038}
|
||||
- Text https://example.com/ [ link ](https://example.com/) {MD004} {MD005} {MD039}
|
||||
- Text https://example.com/ [ link ](https://example.com/) {MD004} {MD005} {MD034} {MD039}
|
||||
|
||||
</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -3514,6 +3514,46 @@ Generated by [AVA](https://avajs.dev).
|
|||
'no-bare-urls',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: 'https://example.com',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
1,
|
||||
19,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 19,
|
||||
editColumn: 1,
|
||||
insertText: '<https://example.com>',
|
||||
},
|
||||
lineNumber: 73,
|
||||
ruleDescription: 'Bare URL used',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||||
ruleNames: [
|
||||
'MD034',
|
||||
'no-bare-urls',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: 'https://example.com',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
1,
|
||||
19,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 19,
|
||||
editColumn: 1,
|
||||
insertText: '<https://example.com>',
|
||||
},
|
||||
lineNumber: 78,
|
||||
ruleDescription: 'Bare URL used',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||||
ruleNames: [
|
||||
'MD034',
|
||||
'no-bare-urls',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: 'https://example.com#heading-',
|
||||
errorDetail: null,
|
||||
|
|
@ -3647,12 +3687,12 @@ Generated by [AVA](https://avajs.dev).
|
|||
␊
|
||||
<div>␊
|
||||
␊
|
||||
https://example.com␊
|
||||
<https://example.com> {MD034}␊
|
||||
</div>␊
|
||||
␊
|
||||
<div>␊
|
||||
␊
|
||||
https://example.com␊
|
||||
<https://example.com> {MD034}␊
|
||||
␊
|
||||
</div>␊
|
||||
␊
|
||||
|
|
@ -33207,6 +33247,26 @@ Generated by [AVA](https://avajs.dev).
|
|||
'blanks-around-lists',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: 'https://example.com/',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
8,
|
||||
20,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 20,
|
||||
editColumn: 8,
|
||||
insertText: '<https://example.com/>',
|
||||
},
|
||||
lineNumber: 26,
|
||||
ruleDescription: 'Bare URL used',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||||
ruleNames: [
|
||||
'MD034',
|
||||
'no-bare-urls',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '* t',
|
||||
errorDetail: null,
|
||||
|
|
@ -33350,7 +33410,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
## Heading 2b {MD019} {MD022}␊
|
||||
␊
|
||||
+ Text *text* text *text* text **text** text \`text\` text \`text\` text {MD004} {MD007} {MD032} {MD037} {MD038}␊
|
||||
+ Text https://example.com/ [link](https://example.com/) {MD004} {MD005} {MD039}␊
|
||||
+ Text <https://example.com/> [link](https://example.com/) {MD004} {MD005} {MD034} {MD039}␊
|
||||
␊
|
||||
</p>␊
|
||||
␊
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue