Open external links in a new tab (#1229)
Fixes https://github.com/silverbulletmd/silverbullet/issues/1228. This matches the generated HTML to the current behavior of editor.openUrl.pull/1230/head
parent
c27c83bc44
commit
1e30517955
|
@ -233,6 +233,7 @@ function render(
|
||||||
name: "a",
|
name: "a",
|
||||||
attrs: {
|
attrs: {
|
||||||
href: url,
|
href: url,
|
||||||
|
target: "_blank",
|
||||||
},
|
},
|
||||||
body: cleanTags(mapRender(linkTextChildren)),
|
body: cleanTags(mapRender(linkTextChildren)),
|
||||||
};
|
};
|
||||||
|
@ -255,6 +256,7 @@ function render(
|
||||||
name: "a",
|
name: "a",
|
||||||
attrs: {
|
attrs: {
|
||||||
href: url,
|
href: url,
|
||||||
|
target: "_blank",
|
||||||
},
|
},
|
||||||
body: url,
|
body: url,
|
||||||
};
|
};
|
||||||
|
@ -333,6 +335,7 @@ function render(
|
||||||
name: "a",
|
name: "a",
|
||||||
attrs: {
|
attrs: {
|
||||||
href: url,
|
href: url,
|
||||||
|
target: "_blank",
|
||||||
},
|
},
|
||||||
body: url,
|
body: url,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue