Skip to main content

Function: setTypstCompiler()

setTypstCompiler(compiler): void

Defined in: src/mobjects/text/TypstRenderer.ts:82

Inject a Typst compiler, replacing the lazy-loaded WASM compiler.

Pass a function that maps a Typst source string to an SVG string. Pass null to restore the default WASM-backed compiler. Tests use this to avoid any real WASM compile.

Parameters​

compiler​

TypstSvgCompiler

Returns​

void