diff --git a/mdx-components.tsx b/mdx-components.tsx
index 3899668..a60028e 100644
--- a/mdx-components.tsx
+++ b/mdx-components.tsx
@@ -30,11 +30,20 @@ export function useMDXComponents(components: MDXComponents): MDXComponents {
),
hr: () =>
,
- a: ({ href, children }) => (
-
- {children}
-
- ),
+ a: ({ href, children, ...props }) => {
+ const isExternal = typeof href === 'string' && (href.startsWith('http://') || href.startsWith('https://'))
+ return (
+
+ {children}
+
+ )
+ },
code: ({ children, ...props }) => (