From c7e05aa78d300f1f7f5f11a28d41ae8cd6279241 Mon Sep 17 00:00:00 2001 From: Prisma Date: Tue, 2 Apr 2024 10:42:57 +0100 Subject: [PATCH] add external link svg --- src/theme/MDXComponents.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/theme/MDXComponents.tsx b/src/theme/MDXComponents.tsx index 760065ddf5..e8f7026c69 100644 --- a/src/theme/MDXComponents.tsx +++ b/src/theme/MDXComponents.tsx @@ -96,7 +96,17 @@ export default { TabbedContent, details: (props: any) => , TabItem, - Link, + a: (props: any) => { + if (props?.href?.includes("prisma.io/") || props?.href?.charAt(0) === "/") + return {props.children} + else + return + {props.children} + + + + + }, TopBlock, CodeWithResult, SwitchTech,