Adds the target and rel attributes to external links in markdown.
The gatsby-remark-external-links plugin is a useful addition for those utilizing Gatsby to manage their markdown content. It simplifies the way external links are handled, ensuring they open in a new tab while maintaining the necessary security specifications. By integrating this plugin, developers can enhance user experience, particularly for sites that contain many outbound links, making navigation smoother and safer.
This Gatsby port of the remark-external-links plugin is designed to automatically add appropriate attributes to external links in markdown files. It not only helps with link management but also adheres to best practices in web development, safeguarding users from potential vulnerabilities associated with external navigation.
Automatic Target & Rel Attributes: Automatically adds target and rel attributes to external links in markdown, enhancing functionality and security.
Customizable Target: Set the target attribute to values like _self, _blank, _parent, or _top to control link behavior.
Flexible Rel Options: Specify the rel attribute with options such as nofollow, noopener, or noreferrer to define the relationship between the linking page and the destination.
Option to Omit Attributes: The plugin allows you to specify null for both target and rel, giving you complete control over link attributes.
Security Recommendations: Encourages best practices by suggesting the addition of rel="noopener noreferrer" when using target="_blank" to prevent potential security risks.
Easy Installation: Seamless integration into your Gatsby project with a simple plugin installation process.
MIT License: Open-source licensing allows for free usage and modification, promoting community collaboration and support.