fix: links in new tab

This commit is contained in:
cha0s 2020-12-14 06:48:04 -06:00
parent 7426e067e0
commit 534ffc3c5c

View File

@ -18,7 +18,11 @@ export default function ChatMessageMarkdown(props) {
useLayoutEffect(() => chatMessageMarkdownExpandos($markdown.current), [$markdown]);
return (
<div className="chat--messageMarkdown" ref={$markdown}>
<ReactMarkdown disallowedTypes={['image']} source={message} />
<ReactMarkdown
disallowedTypes={['image']}
linkTarget="_blank"
source={message}
/>
</div>
);
}