Skip to main content

resolve_reference_links

Function resolve_reference_links 

Source
pub fn resolve_reference_links(text: &str) -> String
Expand description

Rustdoc comments often disambiguate intra-doc links with a reference-style definition ([`Foo::bar`]: crate::Foo::bar); the site’s markdown renderer only supports inline links. Drop each definition line and inline it into the shorthand [Foo::bar] references it defines. Doesn’t handle the separate [text][label] reference form — not seen in practice here.