Skip to main content

fragment_range

Function fragment_range 

Source
pub fn fragment_range(
    body: &str,
    fragment: Option<&str>,
) -> Option<Range<usize>>
Expand description

What a link fragment selects: no fragment the whole body, ^id a block, anything else a heading selector (heading_range). All trimmed.