import { memo } from "react"; import ReactMarkdown from "react-markdown"; interface MarkdownPreviewProps { content: string; className?: string; } function MarkdownPreview({ content, className = "" }: MarkdownPreviewProps) { return (
{children}
, ul: ({ children }) =>{children}), code: ({ className, children, ...props }) => { const isInline = !className; return isInline ? (
{children}
) : (
{children}
);
},
pre: ({ children }) => (
{children}
),
a: ({ href, children }) => (
{children}
),
strong: ({ children }) => {children},
em: ({ children }) => {children},
hr: () =>