Skip to main content

replace_inline_links

Function replace_inline_links 

Source
pub fn replace_inline_links(
    text: &str,
    name_to_page: &NameToPage,
    current_page: &Path,
) -> String
Expand description

Replace {Ident} and {xref-Ident} with markdown links using name_to_page.

Matches the legacy pattern: {[xref-]Ident[-part]}[label] where label defaults to Ident.