Skip to main content

section_slug

Function section_slug 

Source
pub fn section_slug(name: &str) -> String
Expand description

Stable Typst label for a section, derived from its file name: the stem, lowercased with every non-alphanumeric run collapsed to a single -, under a wisp- namespace (e.g. access-control-policy.mdwisp-access-control-policy). May collide for unusual names; section_slugs disambiguates.