Skip to content

Commit 07ca400

Browse files
committed
typst: require Typst 0.15 for a custom QUARTO_TYPST binary
Pandoc 3.13 writes horizontal rules as #divider(), which Quarto's Typst template now resolves to Typst 0.15's native divider. With an older compiler set through QUARTO_TYPST, such documents failed with a raw "unknown variable: divider" error instead of Quarto's upgrade message. The check only runs when QUARTO_TYPST is set; the bundled Typst is not validated. The >=0.8 floor dates from 2023 and was not raised by any Typst bump since, although bundled packages already need newer compilers (marginalia and showybox declare 0.12, theorion 0.13). quarto check already compares against the bundled 0.15.1.
1 parent 4892f38 commit 07ca400

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎news/changelog-1.12.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ All changes included in 1.12:
88
- Update `typst-gather` to 0.2.4.
99
- Update `verapdf` to 1.30.3 (used by `quarto install verapdf` for PDF/A validation).
1010
- Update `pandoc` to 3.13
11-
- ([jgm/pandoc#11540](https://github.com/jgm/pandoc/issues/11540)): Horizontal rules (`---`) in Typst output are now full-width, following Pandoc 3.13's use of Typst 0.15's native `divider` element, instead of the previous centered half-width line. Restyle them with `#show divider: set line(stroke: 2pt)` in a raw Typst block or a custom template.
11+
- ([jgm/pandoc#11540](https://github.com/jgm/pandoc/issues/11540)): Horizontal rules (`---`) in Typst output are now full-width, following Pandoc 3.13's use of Typst 0.15's native `divider` element, instead of the previous centered half-width line. Restyle them with `#show divider: set line(stroke: 2pt)` in a raw Typst block or a custom template. A Typst binary set through `QUARTO_TYPST` must now be version 0.15 or later.
1212
- ([jgm/pandoc#11831](https://github.com/jgm/pandoc/pull/11831)): HTML documents using `theme: pandoc` pick up Pandoc 3.13's style updates. Links now inherit the surrounding text color unless `linkcolor` is set, horizontal rules and table borders follow the text color, and printed output drops backgrounds and the fixed 12pt font size, rendering at the 11pt print size used by other Quarto HTML themes. Pandoc 3.13's automatic dark mode is not enabled for `theme: pandoc`.
1313

1414
## Accessibility

‎src/core/typst.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export async function validateRequiredTypstVersion() {
261261
if (Deno.env.get("QUARTO_TYPST")) {
262262
const version = await typstVersion();
263263
if (version) {
264-
const required = ">=0.8";
264+
const required = ">=0.15";
265265
if (!satisfies(version, required)) {
266266
error(
267267
"An updated version of the Typst CLI is required for rendering typst documents.\n",

0 commit comments

Comments
 (0)