Add syntax highlighting support to MessageBubble component with rehype-highlight and highlight.js

This commit is contained in:
ecwu
2025-02-07 21:52:09 +00:00
parent 8db892caf7
commit 8d4a9b840a
5 changed files with 125 additions and 1 deletions

View File

@@ -49,6 +49,7 @@
"cmdk": "1.0.4",
"date-fns": "^4.1.0",
"embla-carousel-react": "^8.5.1",
"highlight.js": "^11.11.1",
"idb": "^8.0.1",
"input-otp": "^1.4.1",
"lucide-react": "^0.469.0",
@@ -60,6 +61,7 @@
"react-markdown": "^9.0.3",
"react-resizable-panels": "^2.1.7",
"recharts": "^2.15.0",
"rehype-highlight": "^7.0.2",
"rehype-katex": "^7.0.1",
"remark-math": "^6.0.0",
"sakura.css": "^1.5.0",