Skip to main content

render_html

Function render_html 

Source
pub fn render_html(doc: &Document, theme: Theme) -> RenderOutput
Expand description

Renders a Document to HTML using the given Theme.

The returned RenderOutput contains:

  • html: the full fragment with <style> prepended.
  • body_html: just the body content without CSS.