feat(markdown): 引入 react-markdown 及相关依赖支持 markdown 渲染

- 添加 react-markdown 库以支持 markdown 内容渲染
- 引入 @types 相关类型定义包,包括 debug、estree-jsx、hast 等
- 添加解析 markdown 所需的工具库,如 micromark、mdast-util 系列
- 集成 hast-util-to-jsx-runtime 实现 hast 到 jsx 的转换
- 添加字符实体处理和样式解析相关依赖
- 引入支持 mdx 语法的相关工具包
- 添加统一的类型检查和开发依赖支持
- 更新 package-lock.json 锁定新增依赖版本
This commit is contained in:
雨霖铃
2025-12-20 20:58:46 +08:00
parent d6b1edeffc
commit 0cad722479
7 changed files with 1576 additions and 2 deletions
+1
View File
@@ -9,6 +9,7 @@
"@testing-library/user-event": "^13.5.0",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"react-markdown": "^10.1.0",
"react-router-dom": "^6.30.2",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"