slug

tcmts.site.slug · #yoyia4ly · term · runs anywhere

GitHub's heading anchors (what the docs' own links use).

export const slug = (text: string) => text.trim().toLowerCase().replace(/<[^>]+>/g, "").replace(/[^\w\- ]/g, "").replace(/ /g, "-")

used by