feat: 添加Markdown渲染组件,TODO:样式需要更改

This commit is contained in:
2026-03-19 01:31:03 +08:00
parent bd1fa14f20
commit c99052529d
4 changed files with 4851 additions and 2 deletions

View File

@@ -9,8 +9,18 @@
"preview": "vite preview"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"highlight.js": "^11.11.1",
"katex": "^0.16.38",
"marked": "^17.0.4",
"marked-highlight": "^2.2.3",
"mermaid": "^11.13.0",
"react": "^18.3.1",
"react-copy-to-clipboard": "^5.1.1",
"react-dom": "^18.3.1",
"react-markdown": "^10.1.0",
"react-syntax-highlighter": "^16.1.1",
"rehype-katex": "^7.0.1",
"remark-math": "^6.0.0"
},
"devDependencies": {
"@types/react": "^18.2.43",