Skip to main content

generate_html_full_document_wasm

Function generate_html_full_document_wasm 

Source
pub fn generate_html_full_document_wasm(
    markdown: &str,
) -> Result<String, JsValue>
Expand description

Render Markdown wrapped in a full HTML5 document skeleton.

Convenience wrapper that flips generate_full_document on before delegating to generate_html. The output starts with <!DOCTYPE html> and is suitable for direct write-out from a Worker / Edge function.

ยงErrors

Same as generate_html_wasm.