Skip to main content

to_typst

Function to_typst 

Source
pub fn to_typst(doc: &SurfDoc) -> String
Expand description

Render a SurfDoc as a complete Typst document string.

The output includes the base template, front matter header, and all blocks mapped to their Typst equivalents. This string can be compiled directly by the Typst engine.