-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Initial work on character preservation option. #70
Conversation
hmm, I actually just realized We could still keep this and modify the |
Address it how? |
what I'm doing in my workflow to slugify urls is basically... const [a, b] = s.split('#')
const slug = `${slugify(a)}#${slugify(b)}` But, this depends on the extent to which you want slugify === urlify. |
I think if the user sets |
Sounds good to me. I think the PR is ready to review, then. 😀👍 |
Co-authored-by: Sindre Sorhus <[email protected]>
Fixes #55
I wanted to preserve the HTML fragment,
#
, in my use-case for slugify. I saw #55 and thought I'd kick off the PR for it.