mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-31 03:05:16 +01:00
Update MD013/line-length to support stern parameter (fixes #256).
This commit is contained in:
parent
11ea2ad5f1
commit
de86a26e4e
6 changed files with 101 additions and 5 deletions
8
test/long-lines-stern.json
Normal file
8
test/long-lines-stern.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD013": {
|
||||
"stern": true,
|
||||
"heading_line_length": 30,
|
||||
"code_block_line_length": 20
|
||||
}
|
||||
}
|
||||
56
test/long-lines-stern.md
Normal file
56
test/long-lines-stern.md
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Long Lines Stern
|
||||
|
||||
12345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
|
||||
This line is too long. text text text text text text text text text text text text
|
||||
|
||||
This line is barely too long. text text text text text text text text text text t
|
||||
|
||||
This line is just okay. text text text text text text text text text text text t
|
||||
|
||||
This line is not a problem. text text text text text text text text text text t
|
||||
|
||||
This line is too long. texttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext
|
||||
|
||||
ThisLineIsOkaytexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext
|
||||
|
||||
## This heading is way too long
|
||||
|
||||
## This heading is long but ok
|
||||
|
||||
## This heading is short + ok
|
||||
|
||||
## ThisTooLongHeadingIsOkaytext
|
||||
|
||||
```text
|
||||
This code is too long
|
||||
This code is a-okay.
|
||||
This code is short.
|
||||
ThisTooLongCodeIsOkay.
|
||||
```
|
||||
|
||||
* This list item line is too long. text text text text text text text text text text
|
||||
* This list item line is okay. text text text text text text text text text
|
||||
This list item line is okay. text text text text text text text text text
|
||||
This list item line is too long. text text text text text text text text text text
|
||||
ThisTooLongListItemLineIsOkaytexttexttexttexttexttexttexttexttexttexttexttexttext
|
||||
|
||||
> This blockquote line is too long. text text text text text text text text text text
|
||||
> This blockquote line is okay. text text text text text text text text text
|
||||
> ThisTooLongBlockquoteLineIsOkaytexttexttexttexttexttexttexttexttexttexttexttexttext
|
||||
>
|
||||
> > This double blockquote line is too long. text text text text text text text text
|
||||
> > This double blockquote line is okay. text text text text text text text
|
||||
> > ThisTooLongDoubleBlockquoteLineIsOkaytexttexttexttexttexttexttexttexttexttexttext
|
||||
|
||||
ThisLineIsTooLongButIsNotReportedBecauseItLooksLikePartOfAListItemtexttexttexttext
|
||||
|
||||
{MD013:5}
|
||||
{MD013:7}
|
||||
{MD013:13}
|
||||
{MD013:17}
|
||||
{MD013:26}
|
||||
{MD013:32}
|
||||
{MD013:35}
|
||||
{MD013:38}
|
||||
{MD013:42}
|
||||
Loading…
Add table
Add a link
Reference in a new issue