[GH-ISSUE #21] Unordered sublist with different symbol #13

Closed
opened 2026-03-03 01:23:01 +03:00 by kerem · 4 comments
Owner

Originally created by @lampo808 on GitHub (Jun 15, 2016).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/21

When writing an unordered sublist I like to use a different list symbol rather than the same used for the main list:

- item 1
- item 2
  + subitem 1
  + subitem 2

In my opinion this should be fine, but I get a MD004 warning instead. I suggest to modify the linter not to raise a warning in this case.

Originally created by @lampo808 on GitHub (Jun 15, 2016). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/21 When writing an unordered sublist I like to use a different list symbol rather than the same used for the main list: ``` - item 1 - item 2 + subitem 1 + subitem 2 ``` In my opinion this should be fine, but I get a MD004 warning instead. I suggest to modify the linter not to raise a warning in this case.
kerem 2026-03-03 01:23:01 +03:00
Author
Owner

@DavidAnson commented on GitHub (Jun 17, 2016):

Thinking about this briefly, I'd want to add a new value for the style parameter named something like differentiated which would behave like consistent, but only check within each level of a list. For simplicity, I probably would not try to ensure consistency across lists.

<!-- gh-comment-id:226679147 --> @DavidAnson commented on GitHub (Jun 17, 2016): Thinking about this briefly, I'd want to add a new value for the `style` parameter named something like `differentiated` which would behave like `consistent`, but only check within each level of a list. For simplicity, I probably would not try to ensure consistency across lists.
Author
Owner

@lampo808 commented on GitHub (Jun 17, 2016):

Yes, better keep each list on its own. Thanks.

<!-- gh-comment-id:226800186 --> @lampo808 commented on GitHub (Jun 17, 2016): Yes, better keep each list on its own. Thanks.
Author
Owner

@DavidAnson commented on GitHub (Jul 4, 2016):

After playing with both implementations, it ended up being much simpler to enforce a consistent style for each level across all lists in the document. So I went with that. :)

<!-- gh-comment-id:230356450 --> @DavidAnson commented on GitHub (Jul 4, 2016): After playing with both implementations, it ended up being much simpler to enforce a consistent style for each level across all lists in the document. So I went with that. :)
Author
Owner

@tomByrer commented on GitHub (Jul 5, 2016):

enforce a consistent style for each level across all lists in the document

Cool, I was hoping on that!

<!-- gh-comment-id:230522979 --> @tomByrer commented on GitHub (Jul 5, 2016): > enforce a consistent style for each level across all lists in the document Cool, I was hoping on that!
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#13
No description provided.