When an element has no pre-existing [rel] (e.g. <a href="#">Example</a>), the config.noreferrer value is not respected. Even when config.noreferrer: true, the output HTML still does not include [rel=noreferrer].
This PR fixes that, so that config.noreferrer is respected regardless of what the pre-existing [rel] values are.
When an element has no pre-existing
[rel]
(e.g.<a href="#">Example</a>
), theconfig.noreferrer
value is not respected. Even whenconfig.noreferrer: true
, the output HTML still does not include[rel=noreferrer]
.This PR fixes that, so that
config.noreferrer
is respected regardless of what the pre-existing[rel]
values are.