Feature Request: Add rel attribute support on ExternalLinks #476
Labels
do not close
Issue which won't close due to inactivity
enhancement
New functionality or behavior
implemented
Change has been implemented
Milestone
Description
Currently, the
rel
attribute is hardcoded tonoopener noreferrer
with no support fornofollow
at all.Based on https://git.drupalcode.org/project/markdown/-/blob/8.x-2.x/src/Plugin/Markdown/CommonMark/Extension/ExternalLinkExtension.php#L119-145:
Add new config options:
external_link/nofollow
external_link/noopener
external_link/noreferrer
That can be set to one of the following values:
all
- All linksexternal
- External links onlyinternal
- Internal links onlyThen the
rel
attribute can be determined provided these settings:https://git.drupalcode.org/project/markdown/-/blob/8.x-2.x/src/Plugin/Markdown/CommonMark/Extension/ExternalLinkExtension.php#L211-227
The text was updated successfully, but these errors were encountered: