How can I exclude relative domain URLs from using the `rehype-external-links' plugin? #153
-
Hello. I'm using Astro and I want to exclude the use of the `rehype-external-links' plugin for URLs relative to the site's domain. My current implementation of the plugin in the Astro configuration is as follows: rehypePlugins: [
[
rehypeExternalLinks,
{
target: "_blank",
rel: "noreferrer",
},
],
], |
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Sep 28, 2023
Replies: 1 comment 5 replies
-
The plugin does what you ask. Perhaps you can use more words to describe your question. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The plugin applies to absolute URLs, so those with
http:...
. You can write relative URLs, so like say[text](/some/url/whatever)
? Why are you writing absolute URLs?