Expand description
mdbook-typst-math - An mdbook preprocessor to render math using Typst
This crate provides a preprocessor for mdbook that converts LaTeX-style math blocks into SVG images rendered by Typst.
§Usage
Add the preprocessor to your book.toml:
[preprocessor.typst-math]§Configuration
The preprocessor supports the following configuration options:
preamble: Typst code to prepend to all math blocksinline_preamble: Typst code to prepend to inline math blocksdisplay_preamble: Typst code to prepend to display math blocksfonts: List of font directories to loadcache: Directory for caching downloaded packages
Structs§
- Typst
Processor - The main preprocessor that converts math blocks to Typst-rendered SVGs.
- Typst
Processor Options - Options that control how Typst renders math blocks.