feat(ui): changed Markdown rendering library

- Markdown render library changed to [react-markdown](https://github.com/remarkjs/react-markdown)
- Added basic hightling via [rehype-highlight](https://github.com/rehypejs/rehype-highlight)

Signed-off-by: minicx <minicx@disroot.org>
This commit is contained in:
minicx
2024-12-13 15:26:46 +03:00
parent 2c5ca94b3c
commit 7ba6c7d099
3 changed files with 715 additions and 10 deletions

View File

@ -18,13 +18,14 @@
"clsx": "^2.1.0",
"langchain": "^0.1.30",
"lucide-react": "^0.363.0",
"markdown-to-jsx": "^7.6.2",
"next": "14.1.4",
"next-themes": "^0.3.0",
"react": "^18",
"react-dom": "^18",
"react-markdown": "^9.0.1",
"react-text-to-speech": "^0.14.5",
"react-textarea-autosize": "^8.5.3",
"rehype-highlight": "^7.0.1",
"sonner": "^1.4.41",
"tailwind-merge": "^2.2.2",
"yet-another-react-lightbox": "^3.17.2",