mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-18 13:45:27 +01:00
Update MD013/line-length with heading_line_length parameter (fixes #170).
This commit is contained in:
parent
fa04d29485
commit
d7c0d195d7
9 changed files with 110 additions and 40 deletions
6
test/detailed-results-MD011-MD021.json
Normal file
6
test/detailed-results-MD011-MD021.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD013": {
|
||||
"heading_line_length": 40
|
||||
}
|
||||
}
|
||||
|
|
@ -7,6 +7,8 @@ A (reversed)[link] example.
|
|||
|
||||
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
|
||||
|
||||
## 123456789 123456789 123456789 123456789 123456789 123456789
|
||||
|
||||
$ command with no output
|
||||
|
||||
##No space A
|
||||
|
|
|
|||
|
|
@ -28,6 +28,15 @@
|
|||
},
|
||||
{
|
||||
"lineNumber": 10,
|
||||
"ruleNames": [ "MD013", "line-length" ],
|
||||
"ruleDescription": "Line length",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md013",
|
||||
"errorDetail": "Expected: 40; Actual: 62",
|
||||
"errorContext": null,
|
||||
"errorRange": [41, 22]
|
||||
},
|
||||
{
|
||||
"lineNumber": 12,
|
||||
"ruleNames": [ "MD014", "commands-show-output" ],
|
||||
"ruleDescription": "Dollar signs used before commands without showing output",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md014",
|
||||
|
|
@ -36,7 +45,7 @@
|
|||
"errorRange": [5, 2]
|
||||
},
|
||||
{
|
||||
"lineNumber": 12,
|
||||
"lineNumber": 14,
|
||||
"ruleNames": [ "MD018", "no-missing-space-atx" ],
|
||||
"ruleDescription": "No space after hash on atx style heading",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md018",
|
||||
|
|
@ -45,7 +54,7 @@
|
|||
"errorRange": [1, 3]
|
||||
},
|
||||
{
|
||||
"lineNumber": 14,
|
||||
"lineNumber": 16,
|
||||
"ruleNames": [ "MD019", "no-multiple-space-atx" ],
|
||||
"ruleDescription": "Multiple spaces after hash on atx style heading",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md019",
|
||||
|
|
@ -54,7 +63,7 @@
|
|||
"errorRange": [1, 5]
|
||||
},
|
||||
{
|
||||
"lineNumber": 16,
|
||||
"lineNumber": 18,
|
||||
"ruleNames": [ "MD020", "no-missing-space-closed-atx" ],
|
||||
"ruleDescription": "No space inside hashes on closed atx style heading",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md020",
|
||||
|
|
@ -63,7 +72,7 @@
|
|||
"errorRange": [1, 3]
|
||||
},
|
||||
{
|
||||
"lineNumber": 18,
|
||||
"lineNumber": 20,
|
||||
"ruleNames": [ "MD020", "no-missing-space-closed-atx" ],
|
||||
"ruleDescription": "No space inside hashes on closed atx style heading",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md020",
|
||||
|
|
@ -72,7 +81,7 @@
|
|||
"errorRange": [13, 3]
|
||||
},
|
||||
{
|
||||
"lineNumber": 20,
|
||||
"lineNumber": 22,
|
||||
"ruleNames": [ "MD021", "no-multiple-space-closed-atx" ],
|
||||
"ruleDescription": "Multiple spaces inside hashes on closed atx style heading",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md021",
|
||||
|
|
@ -81,7 +90,7 @@
|
|||
"errorRange": [1, 5]
|
||||
},
|
||||
{
|
||||
"lineNumber": 22,
|
||||
"lineNumber": 24,
|
||||
"ruleNames": [ "MD021", "no-multiple-space-closed-atx" ],
|
||||
"ruleDescription": "Multiple spaces inside hashes on closed atx style heading",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md021",
|
||||
|
|
|
|||
7
test/long-lines-short-headings.json
Normal file
7
test/long-lines-short-headings.json
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD003": false,
|
||||
"MD013": {
|
||||
"heading_line_length": 30
|
||||
}
|
||||
}
|
||||
20
test/long-lines-short-headings.md
Normal file
20
test/long-lines-short-headings.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Long Lines, Short Headings
|
||||
|
||||
Text text text text text text text text text text text text text text text text text {MD013}
|
||||
|
||||
## Short heading text text text
|
||||
|
||||
Text
|
||||
|
||||
## Long heading text text text {MD013}
|
||||
|
||||
Text
|
||||
|
||||
## Long heading text text {MD013} ##
|
||||
|
||||
Text
|
||||
|
||||
Long heading of text text text text text text {MD013}
|
||||
-----------------------------------------------------
|
||||
|
||||
Text
|
||||
Loading…
Add table
Add a link
Reference in a new issue