pub fn replace_inline_links(
text: &str,
name_to_page: &NameToPage,
current_page: &Path,
local: Option<&LocalMembers>,
) -> StringExpand 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.
Resolution prefers lexical proximity: a reference naming a member of the current
contract ({member}, or {Contract-member} where Contract is the current
contract) becomes an anchor-only link within the page; everything else goes
through the global name_to_page index.