normalize

Function normalize 

Source
pub fn normalize(text: &mut String)
Expand description

Converts an arbitrary string into Wikidot normalized form.

This will convert non-alphanumeric characters to dashes and case fold it.

Examples:

  • Big Cheese Horace -> big-cheese-horace
  • bottom--Text -> bottom-text
  • Tufto's Proposal -> tufto-s-proposal
  • -test- -> test