import ReactMarkdown from 'react-markdown' import { cn } from '@/lib/utils' interface MarkdownContentProps { content: string className?: string } /** * Renders markdown content with proper styling. * Supports: bold, italic, lists, code blocks, headers, etc. */ export function MarkdownContent({ content, className }: MarkdownContentProps) { return (
{children}
), // Style bold text strong: ({ children }) => ( {children} ), // Style ordered lists ol: ({ children }) => (
{children}
)
}
return (
{children}
)
},
// Style code blocks (pre)
pre: ({ children }) => (
{children}
),
// Style headers
h1: ({ children }) => (
{children}), }} > {content}