dsh-md-view
Manifest validMarkdown view: a safe markdown-to-React renderer for DSH client plugins — GitHub-subset markdown, shared stylesheet, no HTML injection.
dsh-md-view
A DeepSeek Harness (DSH) plugin: markdown rendering for client plugins, so every surface that shows markdown (READMEs, journals, pads) renders it the same way through one service: the harness's own MarkdownText pipeline (GFM, math, footnotes, shiki-highlighted code with copy buttons) plus the document-specific handling chat never needs.
There is no UI of its own to visit. Plugins inject the client service
mdView:
// consumer client half, inject: ['mdView', …]
// 1. One markdown document as an element (you keep the layout):
return React.createElement('div', { className: 'mine' },
ctx.mdView.render(markdownText, { links: { repo: 'owner/name' } }))
// 2. One self-contained document:
const Doc = ctx.mdView.component({ text: markdownText, links: { repo: 'owner/name' } })
return React.createElement(Doc, {})
What it adds to the primitive
- raw
<img>tags (badges, screenshots) become real images, - document-relative link and image targets resolve against
https://github.com/{repo}/blob/HEAD/...and the raw content host (whenlinks.repois given), - fenced code blocks and inline code spans are never transformed.
Contract
- Rendered output is React elements with plain text nodes only; markdown
can never inject HTML (
<script>stays visible text, a MarkdownText rule). links.repois optional; without it relative targets stay as written.- The wrapper stylesheet is installed once by this plugin; consumers add no CSS of their own for markdown.
- No persistence; the host half is a stub.
How to install
Requires a DeepSeek Harness checkout and a profile, here web. The plugin
has no dependencies:
mkdir -p ~/dsh-plugins && cd ~/dsh-plugins
git clone https://github.com/joao-paulo-santos/dsh-md-view.git
# from the harness checkout
pnpm dsh plugin --profile web add ~/dsh-plugins/dsh-md-view
# verify the profile still composes
pnpm dsh --profile web --dump-config
Restart the harness. Plugins that inject the mdView service can now
render markdown.
Dependencies
(none)
Plugins dependent on this
- dsh-workspace-history renders compaction journal bodies with it (optional; degrades to plain text)
- dsh-wo-github renders repository READMEs with it (optional; degrades to plain text)
Comments
Loading…
Similar plugins
by anitman
DSH Markdown 预览器 / DSH Markdown Previewer — web GUI 侧栏 Markdown 浏览、渲染与编辑保存(原子写入 + mtime 冲突检测)
★ 0
JavaScript
Aug 16, 2026
dsh plugin --profile web add dsh-plugin-md-previewby long6177
a dsh‑plugin for enhancing users' Markdown input experience | 一个 用于增强用户 markdown 输入体验的 dsh-plugin
★ 0
MIT
TypeScript
Oct 7, 2026
dsh plugin --profile web add dsh-markdown-inputby zerob13
DeepSeek Harness Web plugin powered by markstream-react for resilient streaming Markdown, Mermaid diagrams, KaTeX math, and safe renderer fallback.
★ 22
↓ 75/wk
MIT
TypeScript
Aug 17, 2026
dsh plugin --profile web add dsh-better-markdownby yaodongH
dsh-doc-review — DeepSeek Harness Web 文档审阅弹窗插件:设计文档与方案审阅以全幅渲染 Markdown 弹窗呈现 (Design documents & plan reviews in a full rendered-Markdown modal)
★ 0
MIT
TypeScript
Sep 25, 2026
dsh plugin --profile web add dsh-doc-reviewby 3361805598-gif
DSH Markdown sidebar viewer and editor with block- and text-range annotations for structured revision requests.
★ 3
MIT
JavaScript
Sep 13, 2026
dsh plugin --profile web add dsh-md-annotatorby Tabbyaccessorial446
Render HTML design prototypes directly in DeepSeek Harness with a canvas tab for visual review, annotation, and sandboxed previews.
★ 0
MIT
JavaScript
Oct 12, 2026
dsh plugin --profile web add @deepseek-ai/dsh-plugin-canvas