Skip to main content

render_untrusted

Function render_untrusted 

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

Render untrusted Markdown: island fences are dropped before rendering, the HTML is then sanitized. Raw HTML from the source survives only where the allowlist says so - this is the boundary the trusted render deliberately does not have.

§Errors

DocsError for malformed non-island content, per render.