Repository navigation
fix: keep an empty filename empty in Typst - #98
Merged
Merged
Conversation
Typst took an empty filename for a missing one and drew the language label, while HTML keeps the empty title of the window Quarto builds. Both now draw a window with an empty title.
Quarto keeps the filename of an executed cell in its registry, and the filter dropped an empty one there. Typst then drew the language label, and HTML nested an auto window inside the window Quarto builds.
mcanouil
force-pushed
the
fix/empty-filename-typst
branch
from
November 23, 2026 09:39
2969470 to
6f8d9f8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A code block with
filename=""now gets a window with an empty title in Typst, which is what HTML already shows.Typst used to treat the empty string as no filename, so the window took the language label.
Now only a missing
filenamefalls back to the label.The
empty-filenamefixture now renders to Typst too, and the test checks for#code-window(filename: "", is-auto: false.