Summary
Preview mermaid syntax as images via local rendering in DSH Web when the chat message contains a mermaid fenced code block (```mermaid or ```mmd ).
Selected features:
- Preview mermaid diagram by rendering image directly!
- Local renderer first!
- Setting card: you can adjust runtime settings in the UI - no restart needed.
- Mount point:
conversation.chat.turnTail(chain slot, additive - never
shadows shipped UI). - Thumbnail display: the diagram renders as a thumbnail; click to enlarge in place, click again to shrink back (same element toggles, no popup).
- Light/dark themes follow the UI automatically.
Changes
- Remove unsed codes (minor changes).
- Code quality improvement (minor changes).
Installation
$ npx @deepseek-ai/dsh plugin --profile web add github:baconbao/dsh-mermaid-image-preview#v0.3.1Uninstallation
$ dsh plugin --profile web remove @baconbao/dsh-mermaid-image-preview