mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Add more tests for MD013/line-length edge case behavior.
This commit is contained in:
parent
d8bf33dde6
commit
9ad696e257
3 changed files with 143 additions and 39 deletions
|
|
@ -3,35 +3,53 @@
|
|||
00000000011111111112222222222333333333344444444445
|
||||
12345678901234567890123456789012345678901234567890
|
||||
|
||||
Texxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx t
|
||||
Text text text text text text text te text
|
||||
|
||||
Texxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx t
|
||||
Text text text text text text text tex text
|
||||
|
||||
{MD013:-2}
|
||||
Text text text text text text text text text
|
||||
|
||||
## Texxxxxxxxxxxxxxxxxxxxxxxx t
|
||||
Text text text text text text text textx text
|
||||
|
||||
## Texxxxxxxxxxxxxxxxxxxxxxxxx t
|
||||
Text text text text text text text textxe text
|
||||
|
||||
{MD013:-2}
|
||||
{MD013:-2} {MD013:-4}
|
||||
|
||||
## Text text text text text te text
|
||||
|
||||
## Text text text text text tex text
|
||||
|
||||
## Text text text text text text text
|
||||
|
||||
## Text text text text text textx text
|
||||
|
||||
## Text text text text text textxe text
|
||||
|
||||
{MD013:-2} {MD013:-4}
|
||||
|
||||
```text
|
||||
Texxxxxxxxxxxxxxxxx t
|
||||
Texxxxxxxxxxxxxxxxxx t
|
||||
Text text text te text
|
||||
Text text text tex text
|
||||
Text text text text text
|
||||
Text text text textx text
|
||||
Text text text textxe text
|
||||
```
|
||||
|
||||
{MD013:-3}
|
||||
{MD013:-3} {MD013:-4}
|
||||
|
||||
Texxxxxxxxxxxxx t
|
||||
Texxxxxxxxxxxxxx t
|
||||
Text text tex text
|
||||
Text text text text
|
||||
Text text textx text
|
||||
Text text textxe text
|
||||
Text text textxet text
|
||||
|
||||
{MD013:-2}
|
||||
{MD013:-2} {MD013:-3}
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"code-block-style": false,
|
||||
"line-length": {
|
||||
"line_length": 40,
|
||||
"heading_line_length": 30,
|
||||
"heading_line_length": 33,
|
||||
"code_block_line_length": 20
|
||||
}
|
||||
} -->
|
||||
|
|
|
|||
|
|
@ -42666,13 +42666,13 @@ Generated by [AVA](https://avajs.dev).
|
|||
errors: [
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 40; Actual: 42',
|
||||
errorDetail: 'Expected: 40; Actual: 45',
|
||||
errorRange: [
|
||||
41,
|
||||
2,
|
||||
5,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 8,
|
||||
lineNumber: 12,
|
||||
ruleDescription: 'Line length',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
|
||||
ruleNames: [
|
||||
|
|
@ -42683,10 +42683,10 @@ Generated by [AVA](https://avajs.dev).
|
|||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 30; Actual: 32',
|
||||
errorDetail: 'Expected: 40; Actual: 46',
|
||||
errorRange: [
|
||||
31,
|
||||
2,
|
||||
41,
|
||||
6,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 14,
|
||||
|
|
@ -42700,13 +42700,13 @@ Generated by [AVA](https://avajs.dev).
|
|||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 20; Actual: 22',
|
||||
errorDetail: 'Expected: 33; Actual: 38',
|
||||
errorRange: [
|
||||
21,
|
||||
2,
|
||||
34,
|
||||
5,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 20,
|
||||
lineNumber: 24,
|
||||
ruleDescription: 'Line length',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
|
||||
ruleNames: [
|
||||
|
|
@ -42717,10 +42717,10 @@ Generated by [AVA](https://avajs.dev).
|
|||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 20; Actual: 22',
|
||||
errorDetail: 'Expected: 33; Actual: 39',
|
||||
errorRange: [
|
||||
21,
|
||||
2,
|
||||
34,
|
||||
6,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 26,
|
||||
|
|
@ -42732,41 +42732,127 @@ Generated by [AVA](https://avajs.dev).
|
|||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 20; Actual: 25',
|
||||
errorRange: [
|
||||
21,
|
||||
5,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 34,
|
||||
ruleDescription: 'Line length',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
|
||||
ruleNames: [
|
||||
'MD013',
|
||||
'line-length',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 20; Actual: 26',
|
||||
errorRange: [
|
||||
21,
|
||||
6,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 35,
|
||||
ruleDescription: 'Line length',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
|
||||
ruleNames: [
|
||||
'MD013',
|
||||
'line-length',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 20; Actual: 25',
|
||||
errorRange: [
|
||||
21,
|
||||
5,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 43,
|
||||
ruleDescription: 'Line length',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
|
||||
ruleNames: [
|
||||
'MD013',
|
||||
'line-length',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 20; Actual: 26',
|
||||
errorRange: [
|
||||
21,
|
||||
6,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 44,
|
||||
ruleDescription: 'Line length',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
|
||||
ruleNames: [
|
||||
'MD013',
|
||||
'line-length',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
],
|
||||
fixed: `# Long Lines Thresholds␊
|
||||
␊
|
||||
00000000011111111112222222222333333333344444444445␊
|
||||
12345678901234567890123456789012345678901234567890␊
|
||||
␊
|
||||
Texxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx t␊
|
||||
Text text text text text text text te text␊
|
||||
␊
|
||||
Texxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx t␊
|
||||
Text text text text text text text tex text␊
|
||||
␊
|
||||
{MD013:-2}␊
|
||||
Text text text text text text text text text␊
|
||||
␊
|
||||
## Texxxxxxxxxxxxxxxxxxxxxxxx t␊
|
||||
Text text text text text text text textx text␊
|
||||
␊
|
||||
## Texxxxxxxxxxxxxxxxxxxxxxxxx t␊
|
||||
Text text text text text text text textxe text␊
|
||||
␊
|
||||
{MD013:-2}␊
|
||||
{MD013:-2} {MD013:-4}␊
|
||||
␊
|
||||
## Text text text text text te text␊
|
||||
␊
|
||||
## Text text text text text tex text␊
|
||||
␊
|
||||
## Text text text text text text text␊
|
||||
␊
|
||||
## Text text text text text textx text␊
|
||||
␊
|
||||
## Text text text text text textxe text␊
|
||||
␊
|
||||
{MD013:-2} {MD013:-4}␊
|
||||
␊
|
||||
\`\`\`text␊
|
||||
Texxxxxxxxxxxxxxxxx t␊
|
||||
Texxxxxxxxxxxxxxxxxx t␊
|
||||
Text text text te text␊
|
||||
Text text text tex text␊
|
||||
Text text text text text␊
|
||||
Text text text textx text␊
|
||||
Text text text textxe text␊
|
||||
\`\`\`␊
|
||||
␊
|
||||
{MD013:-3}␊
|
||||
{MD013:-3} {MD013:-4}␊
|
||||
␊
|
||||
Texxxxxxxxxxxxx t␊
|
||||
Texxxxxxxxxxxxxx t␊
|
||||
Text text tex text␊
|
||||
Text text text text␊
|
||||
Text text textx text␊
|
||||
Text text textxe text␊
|
||||
Text text textxet text␊
|
||||
␊
|
||||
{MD013:-2}␊
|
||||
{MD013:-2} {MD013:-3}␊
|
||||
␊
|
||||
<!-- markdownlint-configure-file {␊
|
||||
"code-block-style": false,␊
|
||||
"line-length": {␊
|
||||
"line_length": 40,␊
|
||||
"heading_line_length": 30,␊
|
||||
"heading_line_length": 33,␊
|
||||
"code_block_line_length": 20␊
|
||||
}␊
|
||||
} -->␊
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue