feat(MarkdownEditor): integrate Mermaid support for diagram rendering in Markdown

- Added MermaidRenderer component to handle Mermaid diagrams within Markdown content.
- Enhanced preformatted code block handling to detect and render Mermaid syntax.
- Updated package.json and package-lock.json to include Mermaid dependency for diagram support.
This commit is contained in:
Julien Froidefond
2025-10-10 12:00:56 +02:00
parent 8cb0dcf3af
commit 75f27c69ee
4 changed files with 1418 additions and 11 deletions

View File

@@ -37,6 +37,7 @@
"emoji-mart": "^5.6.0",
"emoji-regex": "^10.5.0",
"lucide-react": "^0.544.0",
"mermaid": "^11.12.0",
"next": "15.5.3",
"next-auth": "^4.24.11",
"prisma": "^6.16.1",