Update MD009/no-trailing-spaces to allow trailing spaces in fenced code blocks (fixes #292).

This commit is contained in:
David Anson 2020-11-21 16:53:31 -08:00
parent 6c1bc8ecb5
commit bd63c57fde
4 changed files with 45 additions and 10 deletions

View file

@ -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).