mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Add test case for MD059/descriptive-link-text with MD039/no-space-in-links.
This commit is contained in:
parent
571c2353ea
commit
c39a2dd516
3 changed files with 62 additions and 6 deletions
|
@ -32,6 +32,7 @@ Go to this [link](https://example.com/second). {MD059}
|
|||
here](https://example.com)
|
||||
|
||||
[link](destination) {MD059}
|
||||
[ link ](destination) {MD039} {MD059}
|
||||
[*link*](destination) {MD059}
|
||||
[_link_](destination) {MD049} {MD059}
|
||||
[~~link~~](destination) {MD059}
|
||||
|
|
|
@ -10996,7 +10996,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
6,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 39,
|
||||
lineNumber: 40,
|
||||
ruleDescription: 'Inline HTML',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
|
||||
ruleNames: [
|
||||
|
@ -11004,6 +11004,44 @@ Generated by [AVA](https://avajs.dev).
|
|||
'no-inline-html',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '[ link ]',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
2,
|
||||
1,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 1,
|
||||
editColumn: 2,
|
||||
},
|
||||
lineNumber: 35,
|
||||
ruleDescription: 'Spaces inside link text',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
|
||||
ruleNames: [
|
||||
'MD039',
|
||||
'no-space-in-links',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '[ link ]',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
7,
|
||||
1,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 1,
|
||||
editColumn: 7,
|
||||
},
|
||||
lineNumber: 35,
|
||||
ruleDescription: 'Spaces inside link text',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
|
||||
ruleNames: [
|
||||
'MD039',
|
||||
'no-space-in-links',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||||
|
@ -11016,7 +11054,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
editColumn: 2,
|
||||
insertText: '*',
|
||||
},
|
||||
lineNumber: 36,
|
||||
lineNumber: 37,
|
||||
ruleDescription: 'Emphasis style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||||
ruleNames: [
|
||||
|
@ -11036,7 +11074,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
editColumn: 7,
|
||||
insertText: '*',
|
||||
},
|
||||
lineNumber: 36,
|
||||
lineNumber: 37,
|
||||
ruleDescription: 'Emphasis style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||||
ruleNames: [
|
||||
|
@ -11203,7 +11241,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
],
|
||||
},
|
||||
{
|
||||
errorContext: '[*link*]',
|
||||
errorContext: '[ link ]',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
2,
|
||||
|
@ -11219,7 +11257,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
],
|
||||
},
|
||||
{
|
||||
errorContext: '[_link_]',
|
||||
errorContext: '[*link*]',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
2,
|
||||
|
@ -11234,6 +11272,22 @@ Generated by [AVA](https://avajs.dev).
|
|||
'descriptive-link-text',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '[_link_]',
|
||||
errorDetail: null,
|
||||
errorRange: [
|
||||
2,
|
||||
6,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 37,
|
||||
ruleDescription: 'Link text should be descriptive',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||||
ruleNames: [
|
||||
'MD059',
|
||||
'descriptive-link-text',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: '[~~link~~]',
|
||||
errorDetail: null,
|
||||
|
@ -11242,7 +11296,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
8,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 37,
|
||||
lineNumber: 38,
|
||||
ruleDescription: 'Link text should be descriptive',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||||
ruleNames: [
|
||||
|
@ -11285,6 +11339,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
here](https://example.com)␊
|
||||
␊
|
||||
[link](destination) {MD059}␊
|
||||
[link](destination) {MD039} {MD059}␊
|
||||
[*link*](destination) {MD059}␊
|
||||
[*link*](destination) {MD049} {MD059}␊
|
||||
[~~link~~](destination) {MD059}␊
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue