kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Markdown plugin: add rel="noopener noreferrer" to external links (#4771)
rodzic
e72d90c227
commit
e574cb4724
|
@ -119,7 +119,8 @@ function convertNodes(remarkableTree, isStartOfInline) {
|
|||
// External link
|
||||
var attributes = {
|
||||
class: { type: "string", value: "tc-tiddlylink-external" },
|
||||
href: { type: "string", value: currentNode.href }
|
||||
href: { type: "string", value: currentNode.href },
|
||||
rel: { type: "string", value: "noopener noreferrer" }
|
||||
};
|
||||
if (pluginOpts.linkNewWindow) {
|
||||
attributes.target = { type: "string", value: "_blank" };
|
||||
|
|
Ładowanie…
Reference in New Issue