Skip to content

Checkboxes delimited by empty lines are rendered incorrectly. #2180

Closed
@your-diary

Description

@your-diary

Problem

I have this Markdown:

# A

- [ ] apple
- [ ] bear
- [ ] cow

# B

- [ ] apple

- [ ] bear

- [ ] cow

GitHub and VSCode (tested with Markdown Preview Enhanced) render it correctly:

Screenshot 2023-08-31 at 13 33 27

However, mdbook renders it incorrectly:

Screenshot 2023-08-31 at 13 33 37

Steps

No response

Possible Solution(s)

No response

Notes

By the way, mdbook can render lists correctly, meaning empty lines break rendering only for checkboxes:

# C

- apple
- bear
- cow

# D

- apple

- bear

- cow

Screenshot 2023-08-31 at 13 35 49

Version

mdbook v0.4.34

(No preprocessor is used. CSS and JavaScript are not customized. Fully vanilla `mdbook` is used.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions