mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update MD031/blanks-around-fences to include list_items parameter (fixes #200).
This commit is contained in:
parent
4d11e60cfe
commit
c5b74d22b9
9 changed files with 178 additions and 9 deletions
|
|
@ -1015,6 +1015,8 @@ Tags: code, blank_lines
|
|||
|
||||
Aliases: blanks-around-fences
|
||||
|
||||
Parameters: list_items (boolean; default true)
|
||||
|
||||
This rule is triggered when fenced code blocks are either not preceded or not
|
||||
followed by a blank line:
|
||||
|
||||
|
|
@ -1050,6 +1052,10 @@ Some more text
|
|||
Rationale: Aside from aesthetic reasons, some parsers, including kramdown, will
|
||||
not parse fenced code blocks that don't have blank lines before and after them.
|
||||
|
||||
Set the `list_items` parameter to `false` to disable this rule for list items.
|
||||
Disabling this behavior for lists can be useful if it is necessary to create a
|
||||
[tight](https://spec.commonmark.org/0.29/#tight) list containing a code fence.
|
||||
|
||||
<a name="md032"></a>
|
||||
|
||||
## MD032 - Lists should be surrounded by blank lines
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue