mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #318] False positives MD032 & MD007 on combinations of definition list and (un)ordered list #271
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#271
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @exavolt on GitHub (Aug 15, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/318
In VSCode:

Rendered by Hugo as expected:

The only way to combine a definition list with (un)ordered list is to put the first item at the same line as the colon (which translates to
<dd>), which triggers MD032. In turn, it requires the subsequent items to be indented too, which triggers MD007.The expectation is that it should be treated similarly to nested lists.
This won't trigger any of those rules:
@DavidAnson commented on GitHub (Aug 15, 2020):
Definition lists are not part of the CommonMark specification and not currently supported. More context in this comment (the rest of that issue is a bit muddled): https://github.com/DavidAnson/markdownlint/issues/286#issuecomment-624454213