fix: add no-refererer to img rendered by markdown (#2833)

This commit is contained in:
abysse-code
2026-02-24 14:12:08 -05:00
committed by GitHub
parent 611c5533bc
commit aa2fd5904e

View File

@@ -30,7 +30,7 @@ export function Markdown({ children }: { children: string }) {
children?: React.ReactNode;
}) => (
// biome-ignore lint/a11y/useAltText: parsed markdown, so we can't guarantee alt text is present
<img {...props} />
<img {...props} referrerPolicy="no-referrer" />
),
},
},