mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #529] Lists with trailing li characters trigger MD032 #432
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#432
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 @mattdaviscodes on GitHub (May 25, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/529
Summary
Lists with one or more valid elements and followed by a trailing hyphen or period trigger error MD032/blanks-around-lists.
Example
Both of the lists below show the warning.
Expected
These lines aren't blank, so I don't think the warning should show. I'm almost always in the process of adding another list element when this warning shows.
If we're concerned about protecting against lists that end with empty list elements, I'd propose a new rule to cover that scenario specifically.
@DavidAnson commented on GitHub (May 25, 2022):
Period as used in your second example is not a list item marker, but I see the behavior you describe in the first example and agree that warning does not seem appropriate.
@mattdaviscodes commented on GitHub (Jun 22, 2022):
Thank you!