Skip to content

Commit 4a1c7a0

Browse files
authored
chore:codeBlock mermaid (#16)
* feat: add SyntaxMermaid and SyntaxCodeBlock components with enhanced props and methods - Introduced SyntaxMermaid component for rendering Mermaid charts with zoom, fullscreen, and download functionalities. - Added SyntaxCodeBlock component for syntax highlighting using Shiki, supporting light and dark themes. - Enhanced Mermaid types with detailed props and expose methods for better integration. - Removed unused codeXSlots from useComponents hook. - Updated SVG selection logic in useMermaidZoom for improved accuracy. * feat: enhance Markdown rendering with customizable code block and mermaid actions - Refactored MarkdownRender component to include new props for code block actions and mermaid actions. - Updated CodeBlock component to support custom action buttons with dynamic rendering. - Introduced Mermaid component enhancements to allow custom action buttons and improved slot handling. - Simplified toolbar configuration by removing unnecessary properties and integrating action button logic. - Added TypeScript definitions for new action configurations in CodeBlock and Mermaid components. - Improved overall structure and readability of the codebase.
1 parent 10f7fcc commit 4a1c7a0

File tree

16 files changed

+2465
-1204
lines changed

16 files changed

+2465
-1204
lines changed

packages/playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12+
"echarts": "^6.0.0",
1213
"github-markdown-css": "^5.8.1",
1314
"katex": "^0.16.25",
1415
"vue": "^3.3.0",

0 commit comments

Comments
 (0)