fix: replace rehype-pretty-code with react-syntax-highlighter for SSR compatibility
This commit is contained in:
@@ -28,14 +28,12 @@
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0",
|
||||
"react-markdown": "^9.0.1",
|
||||
"rehype-pretty-code": "^0.14.3",
|
||||
"react-syntax-highlighter": "^16.1.1",
|
||||
"remark-gfm": "^4.0.0",
|
||||
"shiki": "^4.0.2",
|
||||
"tailwindcss": "^4.1.18",
|
||||
"use-debounce": "^10.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nitro": "^3.0.260415-beta",
|
||||
"@tailwindcss/typography": "^0.5.16",
|
||||
"@tanstack/devtools-vite": "latest",
|
||||
"@tanstack/eslint-config": "latest",
|
||||
@@ -44,8 +42,10 @@
|
||||
"@types/node": "^22.10.2",
|
||||
"@types/react": "^19.2.0",
|
||||
"@types/react-dom": "^19.2.0",
|
||||
"@types/react-syntax-highlighter": "^15.5.13",
|
||||
"@vitejs/plugin-react": "^6.0.1",
|
||||
"jsdom": "^28.1.0",
|
||||
"nitro": "^3.0.260415-beta",
|
||||
"prettier": "^3.8.1",
|
||||
"typescript": "^5.7.2",
|
||||
"vite": "^8.0.0",
|
||||
|
||||
Reference in New Issue
Block a user