Allow for first level indentation of lists in MD007/ul-indent (fixes #242).

This commit is contained in:
Jeremy Thomerson 2020-01-01 15:53:03 -05:00 committed by David Anson
parent 5634b317d6
commit 9aeddedb7d
7 changed files with 81 additions and 3 deletions

View file

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