tangled
alpha
login
or
join now
ansxor.ca
/
markup2
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
1
pulls
pipelines
#
12Me21
3 years ago
0d3cf47a
0cb34865
+12
-4
1 changed file
expand all
collapse all
unified
split
render.js
+12
-4
render.js
···
72
72
e.textContent = text
73
73
e.className += ' M-link-custom'
74
74
}
75
75
-
e.href = filter_url(url, 'link')
75
75
+
if (!url.startsWith("#")) {
76
76
+
url = filter_url(url, 'link')
77
77
+
e.target = '_blank'
78
78
+
}
79
79
+
e.href = url
76
80
return e
77
77
-
}.bind(𐀶`<a href="" class='M-link' target=_blank>`),
81
81
+
}.bind(𐀶`<a href="" class='M-link'>`),
78
82
79
83
image: function({url, alt, width, height}) {
80
84
let e = this.elem()
···
266
270
267
271
link: function({url}) {
268
272
let e = this()
269
269
-
e.href = filter_url(url, 'link')
273
273
+
if (!url.startsWith("#")) {
274
274
+
url = filter_url(url, 'link')
275
275
+
e.target = '_blank'
276
276
+
}
277
277
+
e.href = url
270
278
return e
271
271
-
}.bind(𐀶`<a class='M-link M-link-custom' target=_blank href="">`),
279
279
+
}.bind(𐀶`<a class='M-link M-link-custom' href="">`),
272
280
273
281
list: function({style}) {
274
282
if (style==null)