Skip to content

Fix panic in PDF export when multiple captions appear inside a figure#7177

Merged
laurmaedje merged 2 commits intomainfrom
pdf-figure-captions
Oct 17, 2025
Merged

Fix panic in PDF export when multiple captions appear inside a figure#7177
laurmaedje merged 2 commits intomainfrom
pdf-figure-captions

Conversation

@saecki
Copy link
Member

@saecki saecki commented Oct 17, 2025

This fixes a panic in krilla when caption is overwritten and thus missing from the generated tag tree.
It also adds a check for tables and lists when they contain more than one caption.

There are other cases with multiple captions where the structure is not really ideal, but validating those is a bit out of scope. And should probably be done when implementing complete tag structure validation in krilla.

@laurmaedje laurmaedje added this pull request to the merge queue Oct 17, 2025
Merged via the queue into main with commit 8b2852b Oct 17, 2025
16 checks passed
@laurmaedje laurmaedje deleted the pdf-figure-captions branch October 17, 2025 15:06
RaikiSakaguchi pushed a commit to doss-eeic/2025-06-typst that referenced this pull request Oct 23, 2025
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