baconbao/dsh-mermaid-preview-plugin ↗★ 0
dsh-mermaid-preview-plugin
直接在聊天中将助手消息内的 mermaid 代码块渲染为图表。
AI 分析
核心用途是实时渲染会话中的 Mermaid 语法,提供直观的图表可视化。适合需要快速阅读和理解 AI 生成的结构图、流程图的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:baconbao/dsh-mermaid-preview-plugin說明文件
閱讀完整 README ↗Configuration
Configurate the mermaid.ink render server and thumbnail size
To use your own mermaid-compatible render server or adjust the thumbnail
height, edit the profile's cordis.patch.yml (e.g.
~/.dsh/profiles/web/cordis.patch.yml):
- id: ui-dsh-mermaid-preview-plugin
config:
mermaidInkUrl: https://your-own-mermaid-ink-server.example.com
thumbMaxHeight: 204
mermaidInkUrl: your local mermaid-ink server.thumbMaxHeight: positive integer, max thumbnail height in px.- When unset,
mermaidInkUrl: https://mermaid.ink/thumbMaxHeight: 204pxare used (defaults) - Restart dsh web after changing the settings