Closed ferrarimarco closed 1 month ago
The configuration says all lists should have the same style but the example has lists with different styles, so the rule reports a violation. This is correct and working as intended.
I think it is uncommon to have separate lists consecutively as in your example, but you can put an HTML comment between them if you want to avoid the warning by using the same list type twice in a row without content between. Or disable the rule for that file or part of it.
Yeah, makes sense. I guess I was asking for another option for MD004 along the lines of sublists
that allowed this behavior.
Anyway, thanks!
Hi! Thanks for working on this tool :)
I think Markdownlint might wrongly flagging the following snippet as a violation of MD004 set to its default configuration (
consistent
).From my understanding of the CommonMark spec, this is allowed. Also, it's the only way to differentiate between different lists where there are only blank lines between them:
Input:
HTML output:
Here's a playground link that reproduces the issue.
Is there a way to configure
MD004
to allow for this, besides disabling the rule entirely?Thanks!