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
|
|
@ -341,6 +341,9 @@ Fixable: Most violations can be fixed by tooling
|
|||
This rule is triggered on any lines that end with unexpected whitespace. To fix this,
|
||||
remove the trailing space from the end of the line.
|
||||
|
||||
Note: Trailing space is allowed in indented and fenced code blocks because some
|
||||
languages require it.
|
||||
|
||||
The `br_spaces` parameter allows an exception to this rule for a specific number
|
||||
of trailing spaces, typically used to insert an explicit line break. The default
|
||||
value allows 2 spaces to indicate a hard break (\<br> element).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue