pub fn to_typst(doc: &SurfDoc) -> StringExpand 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.