mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update MD009/no-trailing-spaces to allow trailing spaces in fenced code blocks (fixes #292).
This commit is contained in:
parent
6c1bc8ecb5
commit
bd63c57fde
4 changed files with 45 additions and 10 deletions
40
test/code-block-trailing-spaces.md
Normal file
40
test/code-block-trailing-spaces.md
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# code-block-trailing-spaces
|
||||
|
||||
Text
|
||||
|
||||
Two trailing spaces {MD009}
|
||||
|
||||
Text
|
||||
|
||||
Indented code block
|
||||
|
||||
Statement
|
||||
Indented statement
|
||||
|
||||
Statement
|
||||
Indented statement
|
||||
|
||||
Two trailing spaces
|
||||
|
||||
Text
|
||||
|
||||
```text
|
||||
Fenced code block
|
||||
|
||||
Statement
|
||||
Indented statement
|
||||
|
||||
Statement
|
||||
Indented statement
|
||||
|
||||
Two trailing spaces
|
||||
```
|
||||
|
||||
Text
|
||||
|
||||
<!-- markdownlint-configure-file
|
||||
{
|
||||
"no-trailing-spaces": { "strict": true },
|
||||
"code-block-style": false
|
||||
}
|
||||
-->
|
||||
Loading…
Add table
Add a link
Reference in a new issue