R/slugify.R
slugify.Rd
Lowercases, replaces any run of non-alphanumeric characters with a single hyphen, and trims leading and trailing hyphens.
slugify(x)
Character vector of headings.
A character vector of slugs, the same length as x.
x
slugify("Project Organisation") #> [1] "project-organisation" slugify("Writing a reprex / getting unstuck") #> [1] "writing-a-reprex-getting-unstuck" slugify('"Good Enough" principles') #> [1] "good-enough-principles"