mdbook::utils
pub fn collapse_whitespace<'a>(text: &'a str) -> Cow<'a, str>
Replaces multiple consecutive whitespace characters with a single space character.