baconbao/dsh-mermaid-preview-plugin0

dsh-mermaid-preview-plugin

Render mermaid fenced blocks inside assistant messages as diagrams directly in the chat.

AI 分析

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

パッケージ
dsh-mermaid-preview-plugin
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/15

インストール

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