mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Allow for first level indentation of lists in MD007/ul-indent (fixes #242).
This commit is contained in:
parent
5634b317d6
commit
9aeddedb7d
7 changed files with 81 additions and 3 deletions
|
|
@ -273,7 +273,7 @@ Tags: bullet, ul, indentation
|
|||
|
||||
Aliases: ul-indent
|
||||
|
||||
Parameters: indent (number; default 2)
|
||||
Parameters: indent, start_indented (number; default 2, boolean; default false)
|
||||
|
||||
This rule is triggered when list items are not indented by the configured
|
||||
number of spaces (default: 2).
|
||||
|
|
@ -310,6 +310,10 @@ Note: This rule applies to a sublist only if its parent lists are all also
|
|||
unordered (otherwise, extra indentation of ordered lists interferes with the
|
||||
rule).
|
||||
|
||||
The `start_indented` parameter allows the first level of lists to be indented by
|
||||
the configured number of spaces rather than starting at zero (the inverse of
|
||||
MD006).
|
||||
|
||||
<a name="md009"></a>
|
||||
|
||||
## MD009 - Trailing spaces
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue