Type Alias: TypstSvgCompiler()
TypstSvgCompiler = (
source) =>Promise<string> |string
Defined in: src/mobjects/text/TypstRenderer.ts:55
A function that compiles a Typst source string to a full SVG string. Used as the dependency-injection seam: tests set a mock compiler so the real WASM compiler is never loaded.
Parameters
source
string
Returns
Promise<string> | string