Skip to main content

normalize_document_with_options

Function normalize_document_with_options 

Source
pub fn normalize_document_with_options(
    source: &str,
    parse_options: &ParseOptions,
) -> Result<String, Message>
Expand description

Normalize a Markdown document using explicit parser options.

Use this for syntax beyond the default GitHub Flavored Markdown, front matter, and math support, such as MDX.

ยงErrors

Returns an error if the Markdown syntax tree cannot be parsed or serialized.