[GH-ISSUE #142] [markdownlint] MD004/ul-style: Unordered list style [Expected: dash; Actual: asterisk] #1970

Closed
opened 2026-03-07 20:03:15 +03:00 by kerem · 4 comments
Owner

Originally created by @dangjun625 on GitHub (Aug 29, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/142

  • item
    • item
      • item
        • item
      • item
    • item
  • item
    • item
      • item
        • item
Originally created by @dangjun625 on GitHub (Aug 29, 2018). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/142 - item * item + item - item + item * item - item * item + item - item
kerem 2026-03-07 20:03:15 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Aug 29, 2018):

Could you please show the original Markdown? What’s shown above is how GitHub renders it. You should be able to put your example in a code fence to preserve the formatting. Thanks!

<!-- gh-comment-id:416796377 --> @DavidAnson commented on GitHub (Aug 29, 2018): Could you please show the original Markdown? What’s shown above is how GitHub renders it. You should be able to put your example in a code fence to preserve the formatting. Thanks!
Author
Owner

@dangjun625 commented on GitHub (Aug 29, 2018):

# example

- item
  * item
    + item
      - item
    + item
  * item
- item
  * item
    + item
      - item

warning

<!-- gh-comment-id:416807966 --> @dangjun625 commented on GitHub (Aug 29, 2018): ``` # example - item * item + item - item + item * item - item * item + item - item ``` ![warning](https://user-images.githubusercontent.com/4170198/44762854-18312080-ab7b-11e8-8c2c-fc73c24fcdb2.jpg)
Author
Owner

@DavidAnson commented on GitHub (Aug 29, 2018):

The default mode for MD04 is consistent, so what you show is correct behavior. I think you want to use the sublist mode. There are examples of both in the documentation:
https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md004---unordered-list-style

Examples of how to configure rules in VS Code are here:
https://github.com/DavidAnson/vscode-markdownlint#markdownlintconfig

<!-- gh-comment-id:416813415 --> @DavidAnson commented on GitHub (Aug 29, 2018): The default mode for MD04 is `consistent`, so what you show is correct behavior. I think you want to use the `sublist` mode. There are examples of both in the documentation: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md004---unordered-list-style Examples of how to configure rules in VS Code are here: https://github.com/DavidAnson/vscode-markdownlint#markdownlintconfig
Author
Owner

@dangjun625 commented on GitHub (Aug 31, 2018):

* Item 1
  * Item 2
    * Item 3
  * Item 4
* Item 4
  * Item 5
<!-- gh-comment-id:417573033 --> @dangjun625 commented on GitHub (Aug 31, 2018): ``` * Item 1 * Item 2 * Item 3 * Item 4 * Item 4 * Item 5 ```
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#1970
No description provided.