You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest the test option to be responsible for that. By default it filters links with absolute urls, and you can override it. This is a breaking change.
Alternatives
Add a new option includeRelative
Remove filtering completely
The text was updated successfully, but these errors were encountered:
Your use case sounds unrelated to this project. This project is explicitly called “external links”, and is about making them safe.
What rels and target do you want to add?
I’d probably recommend to make your own plugin. That’s what our entire ecosystem is about: that you can write plugins to do anything. You likely don’t need much of the logic here. You’ll have simpler code, a smaller bundler, and better performance
Initial checklist
Problem
I'd like to use this plugin to add
target
andrel
properties to links with relative urls. Currently only absolute urls are supported.Solution
I suggest the
test
option to be responsible for that. By default it filters links with absolute urls, and you can override it. This is a breaking change.Alternatives
includeRelative
The text was updated successfully, but these errors were encountered: