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:
parent
cc0011abd3
commit
e93ac76581
@ -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: [{
|
||||||
|
@ -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: [{
|
||||||
|
Loading…
Reference in New Issue
Block a user