Skip to main content

extract_links

Function extract_links 

Source
pub fn extract_links(content: &str) -> Vec<WikiLink>
Expand description

Extract all \[\[wikilinks\]\] from markdown content.

Uses pulldown-cmark to identify code blocks and inline code spans, then scans non-code regions with regex. This correctly handles all Markdown code constructs (fenced, indented, inline, multi-backtick).