-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Format internal links as #<id> #765
Conversation
547ed1b
to
d19b0d0
Compare
Excited about this one. I've been think a lot about #350 lately. For this change, I think we'll want to handle two other cases:
So we'll want a regex that matches something that looks like this: |
2956174
to
cad1258
Compare
With cad1258, this:
gets formatted to:
Btw, I noticed that the const nameValidator = string()
.required('required')
.matches(/^[\w_]+$/, 'only letters, numbers, and _')
.max(32, 'too long') |
Not a huge deal but shouldn't this |
Ah good point, I agree |
cad1258
to
3873cbb
Compare
Done in 3873cbb. Also refactored the code. I realized we can leverage URL parsing using the the power of good sleep lol |
This change turns |
Good catch, fixed in c34c2a4 |
This formats links like https://stacker.news/items/395051 to #395051