Skip to main content

to_html

Function to_html 

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

Render a SurfDoc as an HTML fragment.

The output is a sequence of semantic HTML elements with surfdoc-* CSS classes. No <html>, <head>, or <body> wrapper is added.