realguan/dsh-mermaid-preview
dsh-mermaid-preview renders Markdown mermaid fenced code blocks as interactive diagrams inside the DeepSeek Harness web UI. It hooks the MarkdownText component with a single patch so every surface DSH renders Markdown on (chat, trajectory, plan review, compaction summaries) gets Mermaid support automatically — no per-surface changes. The build produces two artifacts: a bundle artifact for dsh plugin add (native profile layers) and a function-body artifact for cordis_define (in-session dynamic runner, no profile modification). After editing src/client.js a rebuild plus reinstall is required for the native path; the uninstall (removing the dependency from package.json and running pnpm install) cleanly removes injected styles and observers from the profile.
Install
dsh plugin --profile web add github:realguan/dsh-mermaid-previewThe README's recommended form is 'dsh plugin --profile web add github:realguan/dsh-mermaid-preview'; it clones from GitHub, runs pnpm install, and auto-registers as a web profile bundle layer. No npm package named dsh-mermaid-preview exists on the public registry as of 2026-10-01. A local-path install (clone + npm run build + dsh plugin add .) and a dynamic plugin form (cordis_define, no profile change) are also documented.
Compatibility
DSH web UI. A Cordis client plugin that hooks MarkdownText rendering — chat, trajectory, plan review, compaction summaries, any surface rendered by MarkdownText gets Mermaid support from one hook. No Mermaid npm dependency at runtime; the plugin bundles the renderer.
Details
- Repo: realguan/dsh-mermaid-preview
- Category: Coding & Development
- Stars: 0
- Version: GitHub repo realguan/dsh-mermaid-preview (no public npm registry entry as of 2026-10-01); MIT
- Last push: 2026-08-14
- First seen: 2026-08-14
Recent updates
The README documents the two build artifacts (bundle vs function-body), the install options (native command / local path / dynamic in-session), the MarkdownText hook approach, and the uninstall/update procedures.
FAQ
- How do I install the Mermaid renderer?
- dsh plugin --profile web add github:realguan/dsh-mermaid-preview; no npm entry exists as of 2026-10-01.
- Which surfaces in DSH get Mermaid support?
- All MarkdownText surfaces — chat, trajectory, plan review, compaction summaries — per the README.
- Can I try it without changing my profile?
- Yes — the README documents a dynamic plugin route via cordis_define that requires no profile modification.
Alternatives
dongsheng123132/task-passport · huiliyi37/dsh-tianshu-tui · Civitasv/dsh-plugin-diff-review