mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-08 08:58:50 +01:00
Allow opt-out for list items with blank lines in MD009/no-trailing-spaces (fixes #55).
This commit is contained in:
parent
b436640918
commit
d826833a82
7 changed files with 157 additions and 7 deletions
6
test/trailing-spaces-in-lists-allowed.json
Normal file
6
test/trailing-spaces-in-lists-allowed.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD009": {
|
||||
"list_item_empty_lines": true
|
||||
}
|
||||
}
|
||||
52
test/trailing-spaces-in-lists-allowed.md
Normal file
52
test/trailing-spaces-in-lists-allowed.md
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
# Heading
|
||||
|
||||
1. text
|
||||
text
|
||||
1. text
|
||||
|
||||
text
|
||||
1. text
|
||||
|
||||
text
|
||||
1. text
|
||||
text
|
||||
|
||||
1. text
|
||||
text
|
||||
|
||||
1. text
|
||||
|
||||
{MD009:16}
|
||||
{MD009:18}
|
||||
|
||||
1. text
|
||||
text
|
||||
1. text
|
||||
|
||||
text
|
||||
1. text
|
||||
|
||||
text
|
||||
1. text
|
||||
text
|
||||
|
||||
1. text
|
||||
text
|
||||
|
||||
1. text
|
||||
|
||||
1. text
|
||||
- text
|
||||
|
||||
text
|
||||
- text
|
||||
|
||||
text
|
||||
- text
|
||||
text
|
||||
|
||||
- text
|
||||
text
|
||||
|
||||
{MD009:37}
|
||||
{MD009:50}
|
||||
56
test/trailing-spaces-in-lists-default.md
Normal file
56
test/trailing-spaces-in-lists-default.md
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Heading
|
||||
|
||||
1. text
|
||||
text
|
||||
1. text
|
||||
|
||||
text
|
||||
1. text
|
||||
|
||||
text
|
||||
1. text
|
||||
text
|
||||
|
||||
1. text
|
||||
text
|
||||
|
||||
1. text
|
||||
|
||||
{MD009:9}
|
||||
{MD009:16}
|
||||
{MD009:18}
|
||||
|
||||
1. text
|
||||
text
|
||||
1. text
|
||||
|
||||
text
|
||||
1. text
|
||||
|
||||
text
|
||||
1. text
|
||||
text
|
||||
|
||||
1. text
|
||||
text
|
||||
|
||||
1. text
|
||||
|
||||
1. text
|
||||
- text
|
||||
|
||||
text
|
||||
- text
|
||||
|
||||
text
|
||||
- text
|
||||
text
|
||||
|
||||
- text
|
||||
text
|
||||
|
||||
{MD009:29}
|
||||
{MD009:36}
|
||||
{MD009:38}
|
||||
{MD009:44}
|
||||
{MD009:51}
|
||||
Loading…
Add table
Add a link
Reference in a new issue