mirror of
https://github.com/MODSetter/SurfSense
synced 2026-06-21 13:44:09 +00:00
fix: add noopener and noreferer attrs to link element in markdown viewer for security reason
This commit is contained in:
@@ -28,7 +28,7 @@ export function MarkdownViewer({ content, className }: MarkdownViewerProps) {
|
||||
</p>
|
||||
),
|
||||
a: ({ node, children, ...props }: any) => (
|
||||
<a className="text-primary hover:underline" target="_blank" {...props}>
|
||||
<a className="text-primary hover:underline" target="_blank" rel="noopener noreferrer" {...props}>
|
||||
{children}
|
||||
</a>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user