Skip to content

refactor: remove the typst-title hot-fix - #78

Merged
mcanouil merged 7 commits into
mainfrom
refactor/retire-fixed-quarto-hotfixes
Oct 14, 2026
Merged

mcanouil merged 7 commits into
mainfrom
refactor/retire-fixed-quarto-hotfixes

Conversation

@mcanouil

Copy link
Copy Markdown
Owner

Quarto writes theorem titles as Typst content since 1.10 (quarto-dev/quarto-cli#14261), so the typst-title hot-fix and its hotfix.typst-title option are gone.
The extension now requires Quarto 1.10.19, the latest stable release.
A document that still sets the option renders, with a warning that names the unknown key.

The inline code pass no longer special-cases title scaffolds.
That case only existed for the old string-mode titles, so code in a theorem title now gets the same box as inline code elsewhere.
The pass still walks the body only, which keeps the document title out of it.

The Skylighting override stays.
It redefines Quarto's function to draw the annotation markers, so it keeps its own block styling even though Quarto patches its version since 1.9.27 (quarto-dev/quarto-cli#14126).
The comments now say so.

Checked locally on Quarto 1.10.19: tests/run.sh passes 31 of 31, including new fixtures for a theorem title with markup and code, and for code in the document title with no theme background.

Quarto renders theorem titles as Typst markup since 1.10.18, so the hot-fix and its option go, and the extension now requires Quarto 1.10.19.
The raw backtick fallback existed for the string-mode titles of the removed hot-fix. Quarto writes titles as content, so title code now takes the themed box. The version-threshold examples move to 1.11.0, above the new minimum.
Walking the whole document boxed code in the document title, which the template writes before the box's definitions, so the render failed with no theme background. The pass walks the body only again.
@mcanouil mcanouil added the Type: Refactor 🔥 Issues related to refactoring, restructuring, or cleaning up label Oct 14, 2026
@mcanouil mcanouil self-assigned this Oct 14, 2026
@mcanouil
mcanouil marked this pull request as ready for review October 14, 2026 21:46
@mcanouil
mcanouil merged commit f045035 into main Oct 14, 2026
4 checks passed
@mcanouil
mcanouil deleted the refactor/retire-fixed-quarto-hotfixes branch October 14, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Refactor 🔥 Issues related to refactoring, restructuring, or cleaning up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant