Skip to content

markdown: Fix render list item blocks - #2585

Merged
huacnlee merged 3 commits into
longbridge:mainfrom
wabzqem:fix/render-list-item-blocks
Jul 27, 2026
Merged

markdown: Fix render list item blocks#2585
huacnlee merged 3 commits into
longbridge:mainfrom
wabzqem:fix/render-list-item-blocks

Conversation

@wabzqem

@wabzqem wabzqem commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Closes #[issue number]

Description

Markdown block elements such as fenced code blocks, tables, blockquotes, and headings were being dropped when nested inside list items. These blocks now render at the full available list width, with regression coverage for visibility and code-block action alignment.

Screenshot

Before After
Screenshot 2026-07-22 at 3 10 36 pm Screenshot 2026-07-22 at 3 05 54 pm

How to Test

Run cargo run --example markdown with this fix applied:

# Hello, **World**!
  
1. This is the first list item Hello!
    ```text
    a nested block
    ```
2. second list item
  
```text
non-nested block
```

Checklist

  • [ X ] I have read the CONTRIBUTING document and followed the guidelines.
  • [ X ] Reviewed the changes in this PR and confirmed AI generated code (If any) is accurate.
  • [ X ] Passed cargo run for story tests related to the changes.

@huacnlee huacnlee changed the title Fix/render list item blocks markdown: Fix render list item blocks Jul 27, 2026
@huacnlee
huacnlee merged commit 1a66721 into longbridge:main Jul 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants