From b65d5be86bd337c625b367bf8bfbd1dc4021f4e3 Mon Sep 17 00:00:00 2001 From: Skylar Brown Date: Tue, 6 Aug 2024 15:30:46 -0700 Subject: [PATCH] closes #87 --- website/mdx-components.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/website/mdx-components.tsx b/website/mdx-components.tsx index ac043c47..4c4209b9 100644 --- a/website/mdx-components.tsx +++ b/website/mdx-components.tsx @@ -15,9 +15,16 @@ const fontMono = IBM_Plex_Mono({ export function useMDXComponents(components: MDXComponents): MDXComponents { return { ...components, - a: (props) => ( - - ), + a: (props) => { + const isExternal = props.href?.startsWith("http"); + return ( + + ); + }, img: (props) => { if (props.src?.includes(".mp4")) { return (