fix: add noopener to external chat markdown links (#1315)

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Danila YudinandJulius Marminge authored and GitHub committed 2026-03-28 11:59:56 -07:00
1 parent ce463a5360
commit 73b2f255a9
1 file changed
+1 -1
+1 -1
View File
@@ -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 (