"use client"; import ReactMarkdown from "react-markdown"; import rehypeRaw from "rehype-raw"; import remarkGfm from "remark-gfm"; interface MarkdownProps { children: string; className?: string; } export function Markdown({ children, className = "" }: MarkdownProps) { return (
{children}
);
},
// Style code blocks
pre: ({ children }) => {
return (
{children}
);
},
// Style unordered lists with spacing
ul: ({ children }) => {
return (
{children}
; }, // Style bold text used as section headers strong: ({ children }) => { return {children}; }, // Style headings h1: ({ children }) => (