rustdoc::passes::collect_intra_doc_links

Function range_between_backticks

source
fn range_between_backticks(
    ori_link_range: &MarkdownLinkRange,
    dox: &str,
) -> MarkdownLinkRange
Expand description

Get the section of a link between the backticks, or the whole link if there aren’t any backticks.

For example:

[`Foo`]
  ^^^

This function does nothing if ori_link.range is a MarkdownLinkRange::WholeLink.