mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-06 06:12:40 +02:00
fix: add noopener and noreferer attrs to link element in markdown viewer for security reason
This commit is contained in:
parent
2f43042180
commit
c19eb46b0d
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ export function MarkdownViewer({ content, className }: MarkdownViewerProps) {
|
||||||
</p>
|
</p>
|
||||||
),
|
),
|
||||||
a: ({ node, children, ...props }: any) => (
|
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}
|
{children}
|
||||||
</a>
|
</a>
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue