[GH-ISSUE #529] Lists with trailing li characters trigger MD032 #432

Closed
opened 2026-03-03 01:26:51 +03:00 by kerem · 2 comments
Owner

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.

# Examples

## Hyphens

- Example
-

## Period

. Example
.

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.

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. ```md # Examples ## Hyphens - Example - ## Period . Example . ``` ### 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.
kerem 2026-03-03 01:26:51 +03:00
Author
Owner

@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.

<!-- gh-comment-id:1137987604 --> @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.
Author
Owner

@mattdaviscodes commented on GitHub (Jun 22, 2022):

Thank you!

<!-- gh-comment-id:1162640759 --> @mattdaviscodes commented on GitHub (Jun 22, 2022): Thank you!
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#432
No description provided.