pub fn heading_range(body: &str, selector: &str) -> Option<Range<usize>>Expand description
The section a link fragment’s heading selector names: the whole trimmed
selector as one heading’s text first, then the selector split on #
(empty segments dropped, each trimmed) as a heading path.