[][src]Function wikidot_normalize::normalize

pub fn normalize(text: &mut String)

Converts an arbitrary string into Wikidot normalized form.

This will convert non-alphanumeric characters to dashes and makes it lowercase.

Examples:

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