@@ -295,6 +295,7 @@ Aliases: `no-trailing-spaces`
295295Parameters:
296296
297297- ` br_spaces ` : Spaces for line break (` integer ` , default ` 2 ` )
298+ - ` code_blocks ` : Include code blocks (` boolean ` , default ` false ` )
298299- ` list_item_empty_lines ` : Allow spaces for empty lines in list items
299300 (` boolean ` , default ` false ` )
300301- ` strict ` : Include unnecessary breaks (` boolean ` , default ` false ` )
@@ -304,21 +305,19 @@ Fixable: Some violations can be fixed by tooling
304305This rule is triggered on any lines that end with unexpected whitespace. To fix
305306this, remove the trailing space from the end of the line.
306307
307- Note: Trailing space is allowed in indented and fenced code blocks because some
308- languages require it.
309-
310308The ` br_spaces ` parameter allows an exception to this rule for a specific number
311309of trailing spaces, typically used to insert an explicit line break. The default
312- value allows 2 spaces to indicate a hard break (\< br> element).
310+ value allows 2 spaces to indicate a hard break (\< br> element). (You must set
311+ ` br_spaces ` to a value >= 2 for this parameter to take effect. Setting
312+ ` br_spaces ` to 1 behaves the same as 0, disallowing any trailing spaces.)
313313
314- Note: You must set ` br_spaces ` to a value >= 2 for this parameter to take
315- effect. Setting ` br_spaces ` to 1 behaves the same as 0, disallowing any trailing
316- spaces .
314+ By default, trailing space is allowed in indented and fenced code blocks because
315+ some programming languages require that. To report such instances, set the
316+ ` code_blocks ` parameter to ` true ` .
317317
318318By default, this rule will not trigger when the allowed number of spaces is
319319used, even when it doesn't create a hard break (for example, at the end of a
320- paragraph). To report such instances as well, set the ` strict ` parameter to
321- ` true ` .
320+ paragraph). To report such instances, set the ` strict ` parameter to ` true ` .
322321
323322``` markdown
324323Text text text
0 commit comments