[feat] Markdown viewer open links in a new tab.

This commit is contained in:
waychan23 2025-12-13 10:58:25 +08:00
parent 8f16802858
commit 2f43042180

View file

@ -28,7 +28,7 @@ export function MarkdownViewer({ content, className }: MarkdownViewerProps) {
</p>
),
a: ({ node, children, ...props }: any) => (
<a className="text-primary hover:underline" {...props}>
<a className="text-primary hover:underline" target="_blank" {...props}>
{children}
</a>
),