1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-11 18:00:26 +00:00

Make sure external links have the class "tw-tiddlylink-external"

Fix #203
This commit is contained in:
Jeremy Ruston 2013-11-08 12:26:32 +00:00
parent cc0011abd3
commit e93ac76581
2 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ exports.parse = function() {
tag: "a", tag: "a",
attributes: { attributes: {
href: {type: "string", value: this.match[0]}, href: {type: "string", value: this.match[0]},
"class": {type: "string", value: "tw-tiddlylink-external"},
target: {type: "string", value: "_blank"} target: {type: "string", value: "_blank"}
}, },
children: [{ children: [{

View File

@ -44,6 +44,7 @@ exports.parse = function() {
tag: "a", tag: "a",
attributes: { attributes: {
href: {type: "string", value: link}, href: {type: "string", value: link},
"class": {type: "string", value: "tw-tiddlylink-external"},
target: {type: "string", value: "_blank"} target: {type: "string", value: "_blank"}
}, },
children: [{ children: [{