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
remark-external-links plugin not working with <ReactMarkdown/>
I'm trying to use remark-external-links with react-markdown in order to add "noopener noreferrer" to my anchor tags. The problem is that ReactMarkdown appears to be ignoring the plugins. I'm trying to follow the examples from both repos as closely as I can.
It seems like the plugin is doing nothing, however please tell me if I'm doing something wrong. As it stands, I'm going to try and implement a custom renderer for links so I can add in these rel flags.
This is fine for my use-case because all my links are external, but you could add in logic to change the target if the href domain was local to the current website (for example).
remark-external-links plugin not working with
<ReactMarkdown/>
I'm trying to use remark-external-links with react-markdown in order to add "noopener noreferrer" to my anchor tags. The problem is that
ReactMarkdown
appears to be ignoring the plugins. I'm trying to follow the examples from both repos as closely as I can.It seems like the plugin is doing nothing, however please tell me if I'm doing something wrong. As it stands, I'm going to try and implement a custom renderer for links so I can add in these
rel
flags.Your environment
"react-markdown": "^5.0.3", "remark-external-links": "^8.0.0",
Steps to reproduce
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: