Added default value to link's "rel" when link's "target" is "_blank"#761
Added default value to link's "rel" when link's "target" is "_blank"#761galabra wants to merge 1 commit intoremarkjs:mainfrom
Conversation
|
Did you see the related issues when searching for What is your aversion to using a plugin instead of passing options? |
|
It’s an old issue from before plugins worked. They are closed because there is a better alternative. |
|
I beg to differ 🙂 |
|
Everything is a trade off. The trade off here is between a small project that everyone uses or a big project with features many people do not use. |
|
IMO this should be a part of this library, however I understand where you're coming from. For future generations, this is what I ended up with: |
|
Glad you found something that works, and thanks for the PR! |
Initial checklist
Description of changes
When a link's
targetis set to_blank, the consensus is addingrel="noopener noreferrer".I added this as the default behavior and also allowed overriding this value.
This was discussed in the past: #413 and in the prehistoric #12