Function cmark_syntax::highlight[][src]

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

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