[GH-ISSUE #104] Dash style unordered list seen as asterisk inside block quote #86

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

Originally created by @brandonrisell on GitHub (Jan 25, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/104

When you have a dash stye unordered list inside of a block quote, the markdownlint VSCode extension tells you that it expected a dash, but the actual is an asterisk. If I remove the block quote character it is fine with the dash.

E.g.

>- Item 1
>- Item 2
>- Item 3

I am using the vscode extension markdownlint version 0.13.0, and the rule that is triggering, MD004, is using it's default value.

Originally created by @brandonrisell on GitHub (Jan 25, 2018). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/104 When you have a dash stye unordered list inside of a block quote, the markdownlint VSCode extension tells you that it expected a dash, but the actual is an asterisk. If I remove the block quote character it is fine with the dash. E.g. ```markdown >- Item 1 >- Item 2 >- Item 3 ``` I am using the vscode extension `markdownlint` version `0.13.0`, and the rule that is triggering, `MD004`, is using it's default value.
kerem 2026-03-03 01:23:36 +03:00
Author
Owner

@DavidAnson commented on GitHub (Jan 25, 2018):

When pasted into https://dlaa.me/markdownlint/ your sample above does not trigger that error. Is there something else that’s necessary to make it happen?

<!-- gh-comment-id:360538551 --> @DavidAnson commented on GitHub (Jan 25, 2018): When pasted into https://dlaa.me/markdownlint/ your sample above does not trigger that error. Is there something else that’s necessary to make it happen?
Author
Owner

@brandonrisell commented on GitHub (Feb 1, 2018):

So this took a bit to sort out, because you're right, I copied in the example and then even parts of the document and couldn't get the error message.

I finally figured it out though. It's if there was an unordered list earlier in the document. This is super simple, but triggers the error message I'm seeing.

# Header 1

- Item 1

>- List item
>- List item

In our case there are a bunch of things between the normal unordered list and the later quoted unordered list, but that doesn't seem to impact it.

<!-- gh-comment-id:362114584 --> @brandonrisell commented on GitHub (Feb 1, 2018): So this took a bit to sort out, because you're right, I copied in the example and then even parts of the document and couldn't get the error message. I finally figured it out though. It's if there was an unordered list earlier in the document. This is super simple, but triggers the error message I'm seeing. ```markdown # Header 1 - Item 1 >- List item >- List item ``` In our case there are a bunch of things between the normal unordered list and the later quoted unordered list, but that doesn't seem to impact it.
Author
Owner

@DavidAnson commented on GitHub (Feb 1, 2018):

Not looking at the code, but have an idea what’s going on. Thanks for the example!

<!-- gh-comment-id:362133970 --> @DavidAnson commented on GitHub (Feb 1, 2018): Not looking at the code, but have an idea what’s going on. Thanks for the example!
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#86
No description provided.