[GH-ISSUE #160] MD004 flagged on unordered sublist #1985

Closed
opened 2026-03-07 20:03:24 +03:00 by kerem · 3 comments
Owner

Originally created by @faheem-ashraf on GitHub (Dec 15, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/160

I have a list ordered in the same format below but I get the MD004 error. Even if I copy the sublist example in the MD004, I still get the error.

* Item 1
  + Item 2
    - Item 3
  + Item 4
* Item 4
  + Item 5

image

image

Originally created by @faheem-ashraf on GitHub (Dec 15, 2018). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/160 I have a list ordered in the same format below but I get the MD004 error. Even if I copy the sublist example in the MD004, I still get the error. ``` * Item 1 + Item 2 - Item 3 + Item 4 * Item 4 + Item 5 ``` ![image](https://user-images.githubusercontent.com/32819371/50042916-f2b11f80-0062-11e9-8daa-7048e5a847fc.png) ![image](https://user-images.githubusercontent.com/32819371/50042941-85ea5500-0063-11e9-8468-6ca7d7772fef.png)
kerem 2026-03-07 20:03:24 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Dec 15, 2018):

That is correct behavior for the default MD004 configuration of “consistent“. For the example above to work you need to have changed that to “sublist”. Can you please confirm that you’ve done so and show the configuration you used?

<!-- gh-comment-id:447582789 --> @DavidAnson commented on GitHub (Dec 15, 2018): That is correct behavior for the default MD004 configuration of “consistent“. For the example above to work you need to have changed that to “sublist”. Can you please confirm that you’ve done so and show the configuration you used?
Author
Owner

@faheem-ashraf commented on GitHub (Dec 16, 2018):

Apologies. I was not aware I had to change the default setting. Now that I have done this, the feature works as expected.

Thank you for your attention.

<!-- gh-comment-id:447677466 --> @faheem-ashraf commented on GitHub (Dec 16, 2018): Apologies. I was not aware I had to change the default setting. Now that I have done this, the feature works as expected. Thank you for your attention.
Author
Owner

@DavidAnson commented on GitHub (Dec 17, 2018):

Cheers

<!-- gh-comment-id:447690082 --> @DavidAnson commented on GitHub (Dec 17, 2018): Cheers
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#1985
No description provided.