-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add test
option for additional checks
#10
Conversation
Can you move the I think Lastly, would it be an idea to default to |
Good point!
Another good point, I'll also do that!
I thought about that as well. This could maybe lead to some unexpected behavior, since the test would then have to reimplement checking for an a tag in the simple case of just wanting to exclude some domains for example. |
The only real benefit would be that Potentially custom elements too, but then it gets weird that Perhaps I think I’m fine with the current state! |
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #10 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 135 144 +9
=========================================
+ Hits 135 144 +9
☔ View full report in Codecov by Sentry. |
test
option that allows additional matching of link elementstest
option for additional checks
Hi! This was closed. Team: If this was merged, please describe when this is likely to be released. Otherwise, please add one of the |
Released in 2.1.0! Thank you! |
Thanks for your fast handling. That was a joy! |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [rehype-external-links](https://github.com/rehypejs/rehype-external-links) | [`^2.0.1` -> `^2.1.0`](https://renovatebot.com/diffs/npm/rehype-external-links/2.0.1/2.1.0) | [![age](https://badges.renovateapi.com/packages/npm/rehype-external-links/2.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/rehype-external-links/2.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/rehype-external-links/2.1.0/compatibility-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/rehype-external-links/2.1.0/confidence-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>rehypejs/rehype-external-links</summary> ### [`v2.1.0`](https://github.com/rehypejs/rehype-external-links/releases/tag/2.1.0) [Compare Source](https://github.com/rehypejs/rehype-external-links/compare/2.0.1...2.1.0) ##### Add - [`4a7a050`](https://github.com/rehypejs/rehype-external-links/commit/4a7a050) Add `test` option for additional checks by [@​hanneskuettner](https://github.com/hanneskuettner) in [https://github.com/rehypejs/rehype-external-links/pull/10](https://github.com/rehypejs/rehype-external-links/pull/10) **Full Changelog**: rehypejs/rehype-external-links@2.0.1...2.1.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/BirthdayResearch/contented). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS43MS4wIiwidXBkYXRlZEluVmVyIjoiMzUuNzEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Initial checklist
Description of changes
Add a
test
option that is converted usinghast-util-is-element
and adds additional matching capabilities to exclude some external link elements as discussed in #3.