diff --git a/lib/rules.js b/lib/rules.js
index d879bb80..1ebe48cf 100644
--- a/lib/rules.js
+++ b/lib/rules.js
@@ -157,7 +157,8 @@ rules.paragraph_close = function(tokens, idx /*, options, env */) {
rules.link_open = function(tokens, idx, options /* env */) {
var title = tokens[idx].title ? (' title="' + escapeHtml(replaceEntities(tokens[idx].title)) + '"') : '';
var target = options.linkTarget ? (' target="' + options.linkTarget + '"') : '';
- return '';
+ var rel = options.linkTarget && options.linkTarget !== '_self' ? (' rel="noopener"') : '';
+ return '';
};
rules.link_close = function(/* tokens, idx, options, env */) {
return '';