Skip to content

fix: apply Typst code-window styling inside container blocks#24

Merged
mcanouil merged 2 commits intomainfrom
fix/typst-code-window-in-lists
Apr 13, 2026
Merged

fix: apply Typst code-window styling inside container blocks#24
mcanouil merged 2 commits intomainfrom
fix/typst-code-window-in-lists

Conversation

@mcanouil
Copy link
Copy Markdown
Owner

The Typst block processor in `process_typst_blocks()` only recursed into Div elements when walking the document tree. Code blocks nested inside BulletList, OrderedList, BlockQuote, or DefinitionList were passed through without code-window styling.

This adds recursion into those container block types so that nested code blocks receive the same Typst window chrome as top-level ones.

The Typst block processor only recursed into Div elements, so code
blocks nested inside lists, blockquotes, or definition lists were
passed through without code-window styling.

Add recursion into BulletList, OrderedList, BlockQuote, and
DefinitionList items in process_typst_blocks().
@mcanouil mcanouil added the Type: Bug 🐛 Issues related to bugs, errors, or mistakes label Apr 13, 2026
@mcanouil mcanouil self-assigned this Apr 13, 2026
@mcanouil mcanouil merged commit 98b0bde into main Apr 13, 2026
@mcanouil mcanouil deleted the fix/typst-code-window-in-lists branch April 13, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug 🐛 Issues related to bugs, errors, or mistakes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant