-
Notifications
You must be signed in to change notification settings - Fork 18
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
skip rewrite-icons for certain conditions #348
Comments
this would technically be a breaking change, but not sure how often each case might be relied on right now |
I think this is ok. @davidnuescheler should decide :-) |
What about not processing unless they are terminated by spaces? or that are at word boundaries? (Trying to determine how to still process when it's the only content, but not if it's in contiguous content.
|
@bstopp I think that is contrary to what people are used to in places like slack or:rocket:github, which is nice to stick close to for icons imo for URNs I think case 2 could just be adjusted to include |
## [4.0.1](v4.0.0...v4.0.1) (2023-07-18) ### Bug Fixes * ignore urns, hrefs, code blocks for rewrite-icons ([d61e23a](d61e23a)), closes [#348](#348)
🎉 This issue has been resolved in version 4.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fixes #348 Co-authored-by: Max Edell <mgedell@gmail.com>
🎉 This issue has been resolved in version 3.11.22 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The current behavior for icons is to rewrite any text that matches
/:(#?[a-z_-]+[a-z\d]*):/gi
with a spanProblem: this replaces strings that intentionally use colons inside them, like URNs
There are a couple cases I think this could be avoided without being too much of an impact:
code
elements:+1:
(?<!(?:https?|urn)[^\s]*):(#?[a-z_-]+[a-z\d]*):
urn:
,http:
orhttps:
The text was updated successfully, but these errors were encountered: