mdbook::utils

Function normalize_id

Source
pub fn normalize_id(content: &str) -> String
Expand description

Convert the given string to a valid HTML element ID. The only restriction is that the ID must not contain any ASCII whitespace.