this repo has no description

#

12Me21 0d3cf47a 0cb34865

+12 -4
+12 -4
render.js
··· 72 72 e.textContent = text 73 73 e.className += ' M-link-custom' 74 74 } 75 - e.href = filter_url(url, 'link') 75 + if (!url.startsWith("#")) { 76 + url = filter_url(url, 'link') 77 + e.target = '_blank' 78 + } 79 + e.href = url 76 80 return e 77 - }.bind(𐀶`<a href="" class='M-link' target=_blank>`), 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 - e.href = filter_url(url, 'link') 273 + if (!url.startsWith("#")) { 274 + url = filter_url(url, 'link') 275 + e.target = '_blank' 276 + } 277 + e.href = url 270 278 return e 271 - }.bind(𐀶`<a class='M-link M-link-custom' target=_blank href="">`), 279 + }.bind(𐀶`<a class='M-link M-link-custom' href="">`), 272 280 273 281 list: function({style}) { 274 282 if (style==null)