Skip to main content

render

Function render 

Source
pub fn render(src: &str) -> String
Expand description

Convert a markdown source string to sanitized HTML.

Enables the common GFM extensions (tables, strikethrough, task lists, autolinks, footnotes) so authors get the syntax they expect from GitHub / Notion / Obsidian. The post-pass through ammonia keeps it XSS-safe: only a curated tag/attribute allowlist survives.