[GH-ISSUE #284] MD007: Check for four spaces for nested lists #244

Open
opened 2026-03-03 01:25:04 +03:00 by kerem · 0 comments
Owner

Originally created by @koppor on GitHub (May 4, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/284

When mixing lists and enumarations, the sub list should have an indent of 3 spaces:

1. example1

   - sub 11
   - sub 12

2. example2

   - sub 21
   - sub 22

In case one indents with four spaces, there is no error reported:

1. example1

    - sub 11
    - sub 12

2. example

    - sub 21
    - sub 22

There should be a warning, that three spaces are enough.

Howver, two spaces are too less since that does not work, "because the nesting of two spaces is insufficient to push it into the ordered list item"). This is catched by MD007 and thus shouldn't be an issue.

(This is a follow-up to https://github.com/DavidAnson/markdownlint/issues/20#issuecomment-621427480)

Originally created by @koppor on GitHub (May 4, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/284 When mixing lists and enumarations, the sub list should have an indent of 3 spaces: ```markdown 1. example1 - sub 11 - sub 12 2. example2 - sub 21 - sub 22 ``` In case one indents with four spaces, there is no error reported: ```markdown 1. example1 - sub 11 - sub 12 2. example - sub 21 - sub 22 ``` There should be a warning, that three spaces are enough. Howver, two spaces are too less since that does not work, "because the nesting of two spaces is insufficient to push it into the ordered list item"). This is catched by [MD007](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md007---unordered-list-indentation) and thus shouldn't be an issue. (This is a follow-up to https://github.com/DavidAnson/markdownlint/issues/20#issuecomment-621427480)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#244
No description provided.