Add react-markdown + remark-math + rehype-katex to render the AI's markdown (headings, bold, lists, code, blockquotes, tables) and LaTeX math ($H_2O$ etc.). ReactMarkdown escapes raw HTML, keeping the stored message rendering safe from XSS. Styled via .markdown-body in Message.css. Applied to assistant messages only; user text stays plain.