DavidAnson / markdownlint

A Node.js style checker and lint tool for Markdown/CommonMark files.
MIT License
4.72k stars 716 forks source link

Mixing ordered and unordered lists triggers MD032 #1342

Open charlescoult-boeing opened 2 weeks ago

charlescoult-boeing commented 2 weeks ago

image

If I want to have a bulleted list mixed in with a numbered list (unordered sub-items of an item in an ordered list), the linter sees them as two separate lists. Is it possible to configure the linter to allow mixed lists so that I don't have to turn of MD032?

nschonni commented 2 weeks ago

The unoreded list doesn't look like it's indented enough. It would need to start at least 3 spaces in, if it's supposed to be part of the list time

DavidAnson commented 2 weeks ago

Thanks, Nick. @charlescoult-boeing, the relevant part of the specification is here (especially examples 255-258): https://spec.commonmark.org/0.31.2/#list-items