feat(依赖): 添加 Mermaid 图表和 KaTeX 数学公式支持

- 添加 mermaid@11.12.2 用于流程图渲染
- 添加 katex@0.16.27 用于数学公式渲染
- 添加 remark-math 和 rehype-katex 插件
- 添加 @types/katex 类型定义
This commit is contained in:
gaoziman 2025-12-27 22:31:31 +08:00
parent c5c16ee893
commit 011f1d8742
2 changed files with 1125 additions and 1 deletions

View File

@ -20,8 +20,10 @@
"html2canvas": "^1.4.1",
"jose": "^6.1.3",
"jspdf": "^3.0.4",
"katex": "^0.16.27",
"lucide-react": "^0.561.0",
"mammoth": "^1.11.0",
"mermaid": "^11.12.2",
"nanoid": "^5.1.6",
"next": "16.0.10",
"nodemailer": "^7.0.11",
@ -31,7 +33,9 @@
"react": "19.2.1",
"react-dom": "19.2.1",
"react-markdown": "^10.1.0",
"rehype-katex": "^7.0.1",
"remark-gfm": "^4.0.1",
"remark-math": "^6.0.0",
"sonner": "^2.0.7",
"word-extractor": "^1.0.4",
"xlsx": "^0.18.5",
@ -40,6 +44,7 @@
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/bcryptjs": "^3.0.0",
"@types/katex": "^0.16.7",
"@types/node": "^20",
"@types/nodemailer": "^7.0.4",
"@types/pg": "^8.16.0",

File diff suppressed because it is too large Load Diff