import React from 'react'; interface RichTextSectionProps { markdown?: string; } export function RichTextSection({ markdown = '' }: RichTextSectionProps) { // Simple, safe markdown to HTML parser for headers, lists, and paragraphs const renderFormatted = (text: string) => { const lines = text.split('\n'); return lines.map((line, idx) => { if (line.startsWith('### ')) { return (
{line}
); }); }; return (