fix: add noopener to external chat markdown links (#1315)
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
ce463a5360
commit
73b2f255a9
1 file changed
+1
-1
@@ -243,7 +243,7 @@ function ChatMarkdown({ text, cwd, isStreaming = false }: ChatMarkdownProps) {
|
||||
a({ node: _node, href, ...props }) {
|
||||
const targetPath = resolveMarkdownFileLinkTarget(href, cwd);
|
||||
if (!targetPath) {
|
||||
return <a {...props} href={href} target="_blank" rel="noreferrer" />;
|
||||
return <a {...props} href={href} target="_blank" rel="noopener noreferrer" />;
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user