This function modify the text as follows:

  • change to lowecase

  • remove any characters outside a-z A-Z 0-9 and -

  • remove multile hyphens

  • trim hyphen from the start and end of text @note Idea from rstudio/distill

create_slug(title, slug = NULL)