Merge "Open all commentlink-specified links in new tabs"
This commit is contained in:
commit
391d2ac60e
@ -65,6 +65,13 @@
|
|||||||
}
|
}
|
||||||
}, this.removeZeroWidthSpace);
|
}, this.removeZeroWidthSpace);
|
||||||
parser.parse(content);
|
parser.parse(content);
|
||||||
|
|
||||||
|
// Ensure that links originating from HTML commentlink configs open in a
|
||||||
|
// new tab. @see Issue 5567
|
||||||
|
output.querySelectorAll('a').forEach(function(anchor) {
|
||||||
|
anchor.setAttribute('target', '_blank');
|
||||||
|
anchor.setAttribute('rel', 'noopener');
|
||||||
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user