Skip to content

Commit 15c3840

Browse files
committed
Add custom link rendering in MarkdownWithTooltips component
1 parent 6e90b37 commit 15c3840

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/components/MarkdownWithTooltips.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ export function MarkdownWithTooltips({
4747
}
4848
return <span {...props}>{children}</span>;
4949
},
50+
a: ({ children, href }) => {
51+
return (
52+
<a
53+
href={href}
54+
target="_blank"
55+
rel="noopener noreferrer"
56+
className="text-blue-600 hover:text-blue-800 underline"
57+
>
58+
{children}
59+
</a>
60+
);
61+
},
5062
}}
5163
>
5264
{children}

0 commit comments

Comments
 (0)