[GH-ISSUE #428] MD032 is not triggered when list is not followed by a blank line #2204

Closed
opened 2026-03-07 20:05:31 +03:00 by kerem · 2 comments
Owner

Originally created by @trihlord on GitHub (Sep 14, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/428

MD032 is not triggered when list is not followed by a blank line

Package Version
markdownlint ~0.23.1

How to Reproduce

  1. Create .md file with following content from documentation

    # List blanks
    
    Some text
    - Some
    - List
    
    1. Some
    2. List
    Some text
    
    
  2. Process it with markdownlint

Expected Behavior

4 - MD032 / blanks-around-lists Lists should be surrounded by blank lines
8 - MD032 / blanks-around-lists Lists should be surrounded by blank lines

Actual Behavior

4 - MD032 / blanks-around-lists Lists should be surrounded by blank lines
Originally created by @trihlord on GitHub (Sep 14, 2021). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/428 # MD032 is not triggered when list is not followed by a blank line | Package | Version | | :------------- | :-------- | | `markdownlint` | `~0.23.1` | ## How to Reproduce 1. Create .md file with following content from [documentation](https://github.com/DavidAnson/markdownlint/blob/v0.23.1/doc/Rules.md#md032) ```md # List blanks Some text - Some - List 1. Some 2. List Some text ``` 2. Process it with markdownlint ## Expected Behavior ```sh 4 - MD032 / blanks-around-lists Lists should be surrounded by blank lines 8 - MD032 / blanks-around-lists Lists should be surrounded by blank lines ``` ## Actual Behavior ```sh 4 - MD032 / blanks-around-lists Lists should be surrounded by blank lines ```
kerem 2026-03-07 20:05:31 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Sep 14, 2021):

The output of the linter is correct, line 8 is part of list item 2.

https://dlaa.me/markdownlint/#%25m%23%20List%20blanks%0A%0ASome%20text%0A-%20Some%0A-%20List%0A%0A1.%20Some%0A2.%20List%0ASome%20text%0A

The specification calls this "lazy continuation lines" and example 291 is the most relevant.

https://spec.commonmark.org/0.30/#lazy-continuation-line

<!-- gh-comment-id:918850913 --> @DavidAnson commented on GitHub (Sep 14, 2021): The output of the linter is correct, line 8 is part of list item 2. https://dlaa.me/markdownlint/#%25m%23%20List%20blanks%0A%0ASome%20text%0A-%20Some%0A-%20List%0A%0A1.%20Some%0A2.%20List%0ASome%20text%0A The specification calls this "lazy continuation lines" and example 291 is the most relevant. https://spec.commonmark.org/0.30/#lazy-continuation-line
Author
Owner

@NomarCub commented on GitHub (Sep 10, 2022):

For others like me, looking for more info, this came up previously here: #211, #212.

<!-- gh-comment-id:1242741625 --> @NomarCub commented on GitHub (Sep 10, 2022): For others like me, looking for more info, this came up previously here: #211, #212.
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#2204
No description provided.