Skip to main content

strip_emphasis

Function strip_emphasis 

Source
fn strip_emphasis(text: &str) -> String
Expand description

Drop the markers around an emphasised span. A marker pair is only emphasis when each end sits at a word boundary with a single marker, so the _ in an identifier, an unpaired _ and the ** of a glob all stay literal.