xP: open links in a new tab/window
This commit is contained in:
parent
5f02dddd11
commit
9eaf78f823
|
@ -358,7 +358,7 @@ let Content = {
|
|||
while ((match = re.exec(text)) !== null) {
|
||||
if (end < match.index)
|
||||
a.push(m('span', attrs, text.substring(end, match.index)))
|
||||
a.push(m('a', {href: match[0], ...attrs}, match[0]))
|
||||
a.push(m('a[target=_blank]', {href: match[0], ...attrs}, match[0]))
|
||||
end = re.lastIndex
|
||||
}
|
||||
if (end < text.length)
|
||||
|
|
Loading…
Reference in New Issue