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}
), // Style unordered lists ul: ({ children }) => ( ), // Style list items li: ({ children }) => (
  • {children}
  • ), // Style inline code code: ({ className, children, ...props }) => { // Check if it's a code block (has language class) or inline code const isBlock = className?.includes('language-') if (isBlock) { return ( {children} ) } return ( {children} ) }, // Style code blocks (pre) pre: ({ children }) => (
                {children}
              
    ), // Style headers h1: ({ children }) => (

    {children}

    ), h2: ({ children }) => (

    {children}

    ), h3: ({ children }) => (

    {children}

    ), // Style horizontal rules hr: () =>
    , // Style blockquotes blockquote: ({ children }) => (
    {children}
    ), }} > {content}
    ) }