fix(notes): rendered links open in new tab
This commit is contained in:
parent
32f14dfaef
commit
f73a4277b3
@ -29,7 +29,7 @@ export const NoteRender = ({ content }: NoteRenderProps) => {
|
|||||||
if (link.test(part)) {
|
if (link.test(part)) {
|
||||||
const [href] = part.match(link) || []
|
const [href] = part.match(link) || []
|
||||||
return (
|
return (
|
||||||
<a key={index} href={href}>
|
<a key={index} target='_blank' href={href}>
|
||||||
{href}
|
{href}
|
||||||
</a>
|
</a>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user