Skip to content

Repository files navigation

Typst Render Extension For Quarto

A Quarto filter extension that compiles ```{typst} code blocks and inline `{typst} ...` expressions to images (PNG, SVG, or PDF) using the Typst binary bundled with Quarto.

This makes Typst diagrams, figures, tables, and equations usable across all output formats (HTML, PDF via LaTeX, DOCX, RevealJS, and more).

By default, blocks are compiled to images for all output formats, including Typst. Use output: asis for native passthrough when the output format is Typst.

Installation

quarto add mcanouil/quarto-typst-render@0.22.4

This will install the extension under the _extensions subdirectory.

If you are using version control, you will want to check in this directory.

Documentation

The full documentation lives at https://m.canouil.dev/quarto-typst-render/: every global and per-block option, inline expressions, cross-referencing, multi-page output, and figures compiled by the extension itself.

example.qmd is a short, standalone starting point you can copy, rendered to every supported format and attached to each release.

Licence

MIT.

About

Quarto extension to compile Typst code blocks to images (PNG, SVG, PDF) for use across all output formats.

Topics

Resources

Stars

47 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Contributors

Languages