import Link from "next/link"; import ReactMarkdown from "react-markdown"; import rehypeHighlight from "rehype-highlight"; import rehypeRaw from "rehype-raw"; import rehypeSlug from "rehype-slug"; import remarkGfm from "remark-gfm"; interface RenderMarkdownProps { children: string; } export default function RenderMarkdown({ children }: RenderMarkdownProps) { return ( { return ( {props.children ? props.children[0] : props.href} ); }, }} > {children} ); }