Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a new slugify function #357

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

alejandronanez
Copy link
Contributor

TL;DR

Replace github-slugger with lodash.kebabcase


Sometimes you need to create tags with emojis like "🌱-my-tag" as shown in the screenshot below. With github-slugger the emoji will be removed from the tag and will be shown as -my-tag instead. github-slugger docs

CleanShot 2024-08-18 at 19 38 28@2x

Live example of this change: https://www.alejandro.dev/posts/building-the-wrong-thing/

github-slugger omitted emojis from slugs, which means that tags like "🌱-my-tag" will be transformed into "-my-tag"
@satnaing
Copy link
Owner

LGTM
Thanks for your contribution.

@satnaing satnaing merged commit 2b617b2 into satnaing:main Aug 19, 2024
1 check passed
@alejandronanez
Copy link
Contributor Author

@satnaing thank you for creating this project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants