Function cmark_syntax::highlight[][src]

pub fn highlight<'a, Token>(source: &'a str, buf: &mut String) where
    Token: Highlight + Eq + Copy,
    <Token as Logos<'a>>::Extras: Default
Expand description

Highlight the code in source, placing the output into buf.