fix: links in new tab
This commit is contained in:
parent
7426e067e0
commit
534ffc3c5c
|
@ -18,7 +18,11 @@ export default function ChatMessageMarkdown(props) {
|
||||||
useLayoutEffect(() => chatMessageMarkdownExpandos($markdown.current), [$markdown]);
|
useLayoutEffect(() => chatMessageMarkdownExpandos($markdown.current), [$markdown]);
|
||||||
return (
|
return (
|
||||||
<div className="chat--messageMarkdown" ref={$markdown}>
|
<div className="chat--messageMarkdown" ref={$markdown}>
|
||||||
<ReactMarkdown disallowedTypes={['image']} source={message} />
|
<ReactMarkdown
|
||||||
|
disallowedTypes={['image']}
|
||||||
|
linkTarget="_blank"
|
||||||
|
source={message}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user