Skip to content

docs(typst): document callout() arguments for custom formats - #2366

Open
mcanouil wants to merge 4 commits into
quarto-dev:prereleasefrom
mcanouil:docs/typst-callout-kind-15414-prerelease
Open

mcanouil wants to merge 4 commits into
quarto-dev:prereleasefrom
mcanouil:docs/typst-callout-kind-15414-prerelease

Conversation

@mcanouil

Copy link
Copy Markdown
Collaborator

This documents the kind and appearance arguments that Typst callout() receives from quarto-dev/quarto-cli#15415 (#15414) in 1.12.
A new "Callouts" section in the Typst custom formats guide lists every argument Quarto passes to callout(), with the values of kind and appearance.
It shows how a format wraps the default function, and says why the override must accept ..args and build its result with the default function, which cross-referenced callouts rely on.

I rendered the example with a build of that pull request: the warning callout gets the new fill, and a cross-referenced callout keeps its number.

Targets prerelease because the arguments ship in 1.12.

@mcanouil
mcanouil marked this pull request as ready for review November 23, 2026 09:49
@mcanouil
mcanouil marked this pull request as draft November 23, 2026 10:00
@mcanouil
mcanouil marked this pull request as ready for review November 23, 2026 11:24

This branch has not been deployed

No deployments
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.

1 participant