diff --git a/web/components/markdown.tsx b/web/components/markdown.tsx
index 19286cb..d953b76 100644
--- a/web/components/markdown.tsx
+++ b/web/components/markdown.tsx
@@ -2,18 +2,40 @@ import {LovePage} from "web/components/love-page";
import {Col} from "web/components/layout/col";
import ReactMarkdown from "react-markdown";
import React from "react";
+import Link from "next/link";
type Props = {
content: string;
filename: string;
};
-export default function MarkdownPage({ content, filename }: Props) {
+const MarkdownLink = ({href, children}: { href?: string; children: React.ReactNode }) => {
+ if (!href) return <>{children}>
+
+ // If href is internal, use Next.js Link
+ if (href.startsWith('/')) {
+ return {children}
+ }
+
+ // For external links, fall back to
+ return (
+
+ {children}
+
+ )
+}
+
+export default function MarkdownPage({content, filename}: Props) {
return (
- {content}
+
+ }}
+ >{content}
+