'use client'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; interface Props { children: string; className?: string; } /** * Renders the analyzer's prose fields (summary, next_step, next_step_rationale, * post_resolution_analysis) as markdown. Stage 3's prompt forbids headers, but * we coerce any that slip through into bold paragraphs since the surrounding * Card already provides the section heading. */ export function AnalysisMarkdown({ children, className = '' }: Props) { return (

{children}

, h2: ({ children }) =>

{children}

, h3: ({ children }) =>

{children}

, h4: ({ children }) =>

{children}

, h5: ({ children }) =>

{children}

, h6: ({ children }) =>

{children}

, }} > {children}
); }