summaryrefslogtreecommitdiff
path: root/frontend/package.json
diff options
context:
space:
mode:
authorYurenHao0426 <blackhao0426@gmail.com>2026-02-13 19:23:14 +0000
committerYurenHao0426 <blackhao0426@gmail.com>2026-02-13 19:23:14 +0000
commit962e96b0f0f0b91341b65e53b9b52b7c5b10f6d6 (patch)
treea986d07dd1209ff3993aa5eaa9492ca943feba08 /frontend/package.json
parentdbe25778281ded7db601520349e37a39a4b04ceb (diff)
Add LaTeX math rendering with KaTeX
Support both $...$ / $$...$$ (remark-math) and \(...\) / \[...\] (GPT-style) delimiters via a preprocessor that normalizes to dollar-sign syntax before passing to ReactMarkdown. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'frontend/package.json')
-rw-r--r--frontend/package.json3
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/package.json b/frontend/package.json
index 94cef9c..a3cbc67 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -10,12 +10,15 @@
"preview": "vite preview"
},
"dependencies": {
+ "katex": "^0.16.28",
"lucide-react": "^0.556.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-markdown": "^10.1.0",
"reactflow": "^11.11.4",
+ "rehype-katex": "^7.0.1",
"remark-gfm": "^4.0.1",
+ "remark-math": "^6.0.0",
"zustand": "^5.0.9"
},
"devDependencies": {