baconbao/dsh-mermaid-preview-plugin0

dsh-mermaid-preview-plugin

直接在聊天中将助手消息内的 mermaid 代码块渲染为图表。

AI 分析

核心用途是实时渲染会话中的 Mermaid 语法,提供直观的图表可视化。适合需要快速阅读和理解 AI 生成的结构图、流程图的用户。

套件
dsh-mermaid-preview-plugin
版本
0.1.0
授權
MIT
最近更新
2026年8月15日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:baconbao/dsh-mermaid-preview-plugin

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: 204px are used (defaults)
  • Restart dsh web after changing the settings