-
Notifications
You must be signed in to change notification settings - Fork 64
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
Support arbitrary delimiter in wordHighlighter #70
Comments
Is it not possible to use
I agree with this, it was named like that as there were limitations to how it worked but it's been able to capture any string for a year now, there's an issue open: #64 |
With the current implementation I guess not, the
Thanks for pointing that out. |
Hi!
Context
I needed to match a pattern containing a
/
character, therefore/
being used as the hard-coded delimiter proved limiting.Proposal
Would you consider a PR building upon this core change (I used patch-package to get things going quickly):
Remarks
"node": "^12.16.0 || >=13.2.0"
I feel like it’s fine using them.Questions
"
and/
?). I feel like we could provide a sane, exported default list and also allow developers to provide their own as an escape hatch (and because we’d export the default list, they could build upon it for maximum compatibility/future-proofness).words
/word
in particular, asword
may actually contain multiple words (any pattern the developer wants to match within the code block, really). I didn’t alter that naming but I’d propose doing it in the PR.What do you think?
The text was updated successfully, but these errors were encountered: