dsh-mermaid-web v0.1.0
The first public release of the Mermaid Web UI plugin for DeepSeek Harness.
Highlights
- Renders settled fenced blocks labeled
mermaidas SVG diagrams. - Adds independent inline zoom controls from 50% to 300%.
- Opens the same SVG in a full-viewport workspace with fit-to-screen, zoom, wheel and drag panning, and keyboard shortcuts.
- Preserves Mermaid source for auditing and keeps invalid source visible with a controlled parse error.
- Reverses every plugin-owned DOM mutation during Cordis disposal or client-plugin HMR.
- Runs Mermaid in strict security mode with HTML flowchart labels disabled.
Install
pnpm dsh plugin --profile web add github:terrywangcode/dsh-mermaid-web#v0.1.0
pnpm dsh --profile web webThe built browser bundle is committed and included in the attached package, so consumers do not need to build the plugin during installation.
Compatibility
Verified against DeepSeek Harness 0.1.0-rc.5 at commit 47f943859b. The plugin currently integrates with Harness's .md-code-block DOM structure because Harness does not yet expose a first-class Markdown fence renderer slot.