feat: render assistant replies as markdown
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.
This commit is contained in:
Generated
+1536
-4
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user