Skip to main content

parse_wikilinks

Function parse_wikilinks 

Source
pub fn parse_wikilinks(body: &str) -> Vec<Wikilink>
Expand description

Scan body prose for every [[…]] wikilink, in source order, each carrying its byte span. Purely lexical: unclosed [[ is ignored, the first following ]] closes the span, and no markdown structure (code spans, escapes) is interpreted — a higher layer decides whether a match in a code fence counts.