Skip to main content

slugify

Function slugify 

Source
pub fn slugify(heading_text: &str) -> String
Expand 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.