[emacs-berlin] Slugify function in elisp?
Tilmann Singer
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.
hello,
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.
cheers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 507 bytes
Desc: not available
URL: <http://mailb.org/pipermail/emacs-berlin/attachments/20220727/695e3b0e/attachment.sig>
More information about the emacs-berlin
mailing list