[GH-ISSUE #313] How to set MD004 to Sublist? #269

Closed
opened 2026-03-03 01:25:17 +03:00 by kerem · 3 comments
Owner

Originally created by @F1LT3R on GitHub (Aug 7, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/313

Hi, great tool.

I'm having trouble settings sublists.

Here is what I am trying:

{
  "MD004": { "style": "sublist" }
}

I would expect this to allow for the following:

*  Level 1
  + Level 2
    - Level 3

But this gets changed to the following on save:

-  Level 1
  - Level 2
    - Level 3

What am I doing wrong?

Originally created by @F1LT3R on GitHub (Aug 7, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/313 Hi, great tool. I'm having trouble settings sublists. Here is what I am trying: ```json { "MD004": { "style": "sublist" } } ``` I would expect this to allow for the following: ```markdown * Level 1 + Level 2 - Level 3 ``` But this gets changed to the following on save: ```markdown - Level 1 - Level 2 - Level 3 ``` What am I doing wrong?
kerem 2026-03-03 01:25:17 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Aug 7, 2020):

That configuration should not report any violations via markdownlint. You can confirm that here: https://dlaa.me/markdownlint/#%25m%23%20Issue%20313%0A%0A*%20Level%201%0A%20%20%2B%20Level%202%0A%20%20%20%20-%20Level%203%0A%0A%3C!--%20markdownlint-configure-file%20%7B%20%22MD004%22%3A%20%7B%20%22style%22%3A%20%22sublist%22%20%7D%20%7D%20--%3E%0A

What editor are you using and what tool, extension, or plug-in is applying those edits when you save the document?

<!-- gh-comment-id:670636508 --> @DavidAnson commented on GitHub (Aug 7, 2020): That configuration should not report any violations via markdownlint. You can confirm that here: https://dlaa.me/markdownlint/#%25m%23%20Issue%20313%0A%0A*%20Level%201%0A%20%20%2B%20Level%202%0A%20%20%20%20-%20Level%203%0A%0A%3C!--%20markdownlint-configure-file%20%7B%20%22MD004%22%3A%20%7B%20%22style%22%3A%20%22sublist%22%20%7D%20%7D%20--%3E%0A What editor are you using and what tool, extension, or plug-in is applying those edits when you save the document?
Author
Owner

@F1LT3R commented on GitHub (Aug 8, 2020):

I see. I think Prettier is overriding things. Thanks.

<!-- gh-comment-id:670952739 --> @F1LT3R commented on GitHub (Aug 8, 2020): I see. I think Prettier is overriding things. Thanks.
Author
Owner

@dotku commented on GitHub (Mar 23, 2023):

I see. I think Prettier is overriding things. Thanks.

How did you fix it, with prettier rc or eslintrc?

<!-- gh-comment-id:1480461928 --> @dotku commented on GitHub (Mar 23, 2023): > I see. I think Prettier is overriding things. Thanks. How did you fix it, with prettier rc or eslintrc?
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#269
No description provided.