DSH Plugins Marketplace

DSH Plugins

Plugins

/

Terminal & Clients

/

dsh-md-viewer

2

dsh-md-viewer

Manifest valid

DSH web plugin: Render Markdown richly as a preview within the dsh-better-sidebar sidebar (code highlighting / table of contents / one-click copy).

UI (client)hasBundlePatch

dsh-md-viewer

npm version License: MIT dshfind
在 DSH 的 dsh-better-sidebar 侧边栏里,把 .md 文档渲染成漂亮的富预览。

把 Markdown(.md / .markdown)文件在 dsh-better-sidebar 的布局融合侧边栏里以富渲染预览打开——标题、表格、代码块、徽章图片、剥离 HTML 注释,不浮层、不遮挡会话、小屏友好、宽度可拖拽。

与 dsh-better-sidebar 内置的 Markdown 编辑器不同,本插件提供的是开箱即用的渲染预览:点开即是排版好的文档,无需切换预览模式。

✨ 功能

  • 🎨 完整渲染:标题/段落/列表/引用/分隔线/链接/图片/代码块/管道表格
  • 🌈 代码块:语法高亮(js/ts/py/bash/json/yaml/html/css)、语言徽标、一键复制
  • 🧭 目录 TOC:自动收集标题层级,点条目平滑滚动
  • 🛡️ 常见 HTML 处理:<img>→图片、<a>→链接、<br>、<!-- 注释 --> 剥离、HTML 实体反转义
  • 🔒 安全:纯 React 渲染、无 innerHTML、不执行内嵌 HTML
  • 🔗 对话内联动:DSH 每轮"产出文件"chips / 文件树里点开 .md → 直接进侧边栏预览
  • 🧩 依赖 dsh-better-sidebar 的 registerFileViewer 服务,作为"文件预览器"注册(exts: md/markdown)

🚀 安装

⚠️ 本插件依赖 dsh-better-sidebar(通过它的 ctx.betterSidebar 服务注册文件预览器)。不装 better-sidebar 则本插件不生效(安全 no-op)。 不需要 better-sidebar? 用独立的 dsh-md-overlay(浮层预览,不依赖 better-sidebar)。

前置:DSH(dsh web 可运行)、已装 dsh-better-sidebar(dsh plugin --profile web add dsh-better-sidebar@latest)。

dsh plugin --profile web add dsh-md-viewer@latest

装完硬刷新浏览器(Cmd/Ctrl+Shift+R)。之后在 dsh-better-sidebar 里打开任意 .md 文件即可看到渲染预览。

🔌 机制

  • 本插件为 client-only(Host 半为 no-op 桩)。
  • package.json 的 dsh.client.platform: "web" + exports["./client"] 让 DSH 客户端模块系统加载 lib/client.js。
  • lib/client.js 的 apply() 调用 ctx.betterSidebar.registerFileViewer({ exts: ["md","markdown"], fetchStrategy: "fsRead", component }),把 .md 打开行为接管为富渲染预览。
  • 对话里 DSH 自带的"产出文件"chips 点击 → openPath → 被 dsh-better-sidebar 拦截 → 用本查看器渲染。

🛠️ 开发

仓库结构与 DSH 官方插件规范一致:单 npm 包、双 client bundle(__ModuleLoader__.load),运行期不依赖 npm / checkout。

# 本地安装(file: 链接)
cd ~/.dsh/profiles/web
npm install --save file:D:/DSH/dsh-md-viewer   # 或你的实际路径
# 在 package.json 的 dsh.profile.bundles 追加 "dsh-md-viewer"

⚠️ 已知限制

  • markdown 内相对路径图片不会相对文件目录解析(需要时可在 component 里基于 props.path 重写 src);
  • 不支持 GFM 任务列表 / LaTeX / Mermaid / 脚注(需要更完整的独立渲染时,用 dsh-md-overlay,支持任务清单/嵌套列表/停靠面板)。

📦 发布

见 PUBLISHING.md(npm 发布 + dshfind 插件超市收录的完整流程)。

📄 License

MIT

Versions

Latest versionPublishedSize
0.1.0——
0.1.1——
0.1.3——

Comments

Loading…

From the same category

dsh-web

by zhu1090093659

DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop

Tools & CapabilitiesTerminal & ClientsDevelopment & InfrastructureModels & ProvidersUI & ExperienceManifest valid

★ 8.2k

↓ 134/wk

Apache-2.0

TypeScript

Oct 1, 2026

dsh plugin --profile web add dsh-web

by ccch1mneyyy

DSH 官方公众号收录的 TUI 补位插件:Claude Code 风,鲸鱼顶栏/实时状态/流式思考/双击 Esc 回滚/上下文进度+TPS。npm 一键装。 DSH official WeChat featured TUI plugin — Claude Code style: whale bar, live status, streaming thoughts, double-Esc rol

Terminal & ClientsManifest valid

★ 3.9k

↓ 11.6k/wk

MIT

TypeScript

Oct 1, 2026

dsh plugin --profile terminal add @deepseek-harness-tui/dsh-tui

by YuJunZhiXue

DeepSeek Harness 破甲:让所有模型都能破甲,不同模型可换不同提示词;默认提示词面向国模「小码酱」。Jailbreak for every model — swap prompts per model. 求 Star 收藏 ⭐

Terminal & ClientsTools & CapabilitiesManifest valid

★ 2.8k

MIT

JavaScript

Sep 30, 2026

dsh plugin --profile web add dsh-purge

by bowenliang123

The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,

Tools & CapabilitiesTerminal & ClientsUI & ExperienceManifest valid

★ 1.7k

↓ 32k/wk

Apache-2.0

TypeScript

Sep 30, 2026

dsh plugin --profile web add dsh-context

by agentrq

AgentRQ: Human-in-loop realtime conversational task manager for AI Agents. Self-hosted! Control your own agents from wherever you want Mobile, Web, Desktop. Designed to work well with your own Claude

Workflow & AutomationTerminal & ClientsUI & ExperienceManifest valid

★ 1.1k

↓ 56/wk

Apache-2.0

JavaScript

Oct 1, 2026

dsh plugin --profile web add @agentrq/dsh-plugin-agentrq

by vshulcz

One memory shared by Claude Code, Codex, Cursor, Copilot CLI, OpenClaw and 20 more coding agents, built from the session history already on disk. A fix found in one agent comes back in any of them, in

Memory & ContextTerminal & ClientsTools & CapabilitiesManifest valid

★ 1.1k

↓ 1.2k/wk

MIT

Go

Sep 30, 2026

dsh plugin --profile web add dsh-deja