bobashare_web

Function render_markdown_with_syntax_set

Source
pub fn render_markdown_with_syntax_set(
    source: &str,
    syntax_set: &SyntaxSet,
) -> Result<String, RenderMarkdownWithSyntaxError>
Expand description

Render markdown into HTML, including syntax highlighting for code blocks using syntect.

Takes in a SyntaxSet to use for highlighting.