Skip to main content

render_markdown_document

Function render_markdown_document 

Source
pub fn render_markdown_document(
    markdown: &str,
    fallback_title: &str,
    source_modified_unix_secs: Option<u64>,
) -> String
Expand description

Render Markdown supplied in memory as a complete, self-contained HTML page.

This is the platform-neutral entry point used by the Android application. Raw HTML is always sanitized, matching the safe default of the desktop CLI. fallback_title is used only when the document has no top-level heading.