2022-10-30 15:13:19 -07:00
|
|
|
# ~~`MD006` - Consider starting bulleted lists at the beginning of the line~~
|
2022-10-29 23:21:45 -07:00
|
|
|
|
|
|
|
> This rule is deprecated and provided for backward-compatibility
|
|
|
|
|
2022-10-30 15:13:19 -07:00
|
|
|
Tags: `bullet`, `indentation`, `ul`
|
2022-10-29 23:21:45 -07:00
|
|
|
|
2022-10-30 15:13:19 -07:00
|
|
|
Aliases: `ul-start-left`
|
2022-10-29 23:21:45 -07:00
|
|
|
|
|
|
|
Fixable: Most violations can be fixed by tooling
|
|
|
|
|
|
|
|
This rule is triggered when top-level lists don't start at the beginning of a
|
|
|
|
line:
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
Some text
|
|
|
|
|
|
|
|
* List item
|
|
|
|
* List item
|
|
|
|
```
|
|
|
|
|
|
|
|
To fix, ensure that top-level list items are not indented:
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
Some test
|
|
|
|
|
|
|
|
* List item
|
|
|
|
* List item
|
|
|
|
```
|
|
|
|
|
|
|
|
Note: This rule is triggered for the following scenario because the unordered
|
|
|
|
sublist is not recognized as such by the parser. Not being nested 3 characters
|
|
|
|
as required by the outer ordered list, it creates a top-level unordered list
|
|
|
|
instead.
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
1. List item
|
|
|
|
- List item
|
|
|
|
- List item
|
|
|
|
1. List item
|
|
|
|
```
|
|
|
|
|
|
|
|
Rationale: Starting lists at the beginning of the line means that nested list
|
|
|
|
items can all be indented by the same amount when an editor's indent function
|
|
|
|
or the tab key is used to indent. Starting a list 1 space in means that the
|
|
|
|
indent of the first nested list is less than the indent of the second level (3
|
|
|
|
characters if you use 4 space tabs, or 1 character if you use 2 space tabs).
|