[emacs-berlin] Slugify function in elisp?
tils at tils.net
Wed Jul 27 16:19:43 UTC 2022
The original mail by jman was classified as spam, and therefore not
readable in the mailing list archive, so I'm reposting it below.
Writing a slugify function sounds like a nice elisp exercise.
while I'm searching, I'll also drop a question here: Is anyone aware of an
elisp function to create a slug a string? In this context by "slug" I
mean a safe representation of any string used in a URL to identify and
describe a resource, ex.
$ slugify "»Woher weißt du, daß ich toll bin ?« fragte Alice."
should return "woher-weisst-du-dass-ich-toll-bin-fragte-alice"
I saw some implementations in the org-roam and ox-hugo packages but I'm
slightly surprised I couldn't find a dedicated package for this on (M)ELPA.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 507 bytes
Desc: not available
More information about the emacs-berlin