pub fn slugify(heading_text: &str) -> StringExpand description
GitHub’s heading anchors: inline markup dropped, lowercased, spaces to hyphens, everything else that isn’t a word character or hyphen removed. The same function produces the slug of a heading and normalizes the slug written in a link, so the two meet in the middle.