Skip to main content

strip_heading_markup

Function strip_heading_markup 

fn strip_heading_markup(content: &str) -> String
Expand description

Removes Markdown link destinations and inline formatting before slugging.

A run of underscores between two alphanumeric characters (foo_bar, foo__bar) is literal text, as in Python-Markdown, whose underscore emphasis never opens or closes inside a word; the toc slug keeps it (N94).