pub fn heading(doc: &Doc, fragment: &str) -> Option<usize>Expand description
The block of the heading fragment (without its #) names in doc. A
slug already taken by an earlier heading gets -1, -2, … as on GitHub.
The fragment is compared as written: no percent-decoding.