pub fn markdown_to_html_with_extensions(markdown: &str) -> Result<String>Expand description
Convert Markdown to HTML with specified extensions using mdx-gen.
Uses crate::HtmlConfig::default under the hood; for full control
over the pipeline use generate_html directly.
§Examples
use html_generator::generator::markdown_to_html_with_extensions;
let html = markdown_to_html_with_extensions("**bold**").unwrap();
assert!(html.contains("<strong>bold</strong>"));§Errors
Returns crate::error::HtmlError::MarkdownConversion if the
underlying comrak/mdx-gen parse fails.