Skip to main content

default_markdown_options

Function default_markdown_options 

Source
pub fn default_markdown_options() -> MarkdownOptions<'static>
Expand description

Creates a convenience set of options with all features enabled.

The HTML sanitizer stays on (allow_unsafe_html = false): raw HTML in the Markdown source is cleaned with ammonia while mdx-gen’s own generated markup (alert divs, responsive tables, highlighted code) is preserved. Chain MarkdownOptions::with_unsafe_html(true) only for trusted input that needs raw HTML pass-through.