Skip to main content

extract_fenced_blocks

Function extract_fenced_blocks 

Source
pub fn extract_fenced_blocks<'a>(text: &'a str, lang: &str) -> Vec<&'a str>
Expand description

Extract fenced code blocks with the given language marker from text.

Searches for ```{lang}``` pairs, returning trimmed content.