1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-27 14:48:19 +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",
attributes: {
href: {type: "string", value: this.match[0]},
"class": {type: "string", value: "tw-tiddlylink-external"},
target: {type: "string", value: "_blank"}
},
children: [{

View File

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