1 2 3 4 5 6 7 8 9 10 11 12 13
use maud::html; pub fn single_markdown_to_html(markdown: String) -> maud::Markup { let m_as_html = markdown::to_html_with_options(&markdown, &markdown::Options::gfm()) .unwrap() .to_string(); html! { div{ (maud::PreEscaped(m_as_html)) } } }