mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 20:17:32 +01:00
Do not open internal links in new tab
This commit is contained in:
parent
f955397a37
commit
bff4955151
@ -94,7 +94,7 @@ const formatFunction = {
|
||||
table: tableBlock => renderTable(tableBlock),
|
||||
code: codePart => tag.code(text(codePart.text)),
|
||||
text: textPart => text(textPart.text),
|
||||
link: linkPart => tag.a({href: linkPart.url, className: "link", target: "_blank", rel: "noopener" }, renderParts(linkPart.inlines)),
|
||||
link: linkPart => tag.a({href: linkPart.url, className: "link", target: linkPart.internal ? "_self" : "_blank", rel: "noopener" }, renderParts(linkPart.inlines)),
|
||||
pill: renderPill,
|
||||
format: formatPart => tag[formatPart.format](renderParts(formatPart.children)),
|
||||
rule: () => tag.hr(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user