DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Md Export — DeepSeek Harness 插件(DSH Plugin)
← Plugins
M

dsh-md-export

Md Export

DSH web plugin(dsh-better-sidebar 配套插件):在 Markdown 编辑器工具栏中添加导出按钮,可一键将当前 .md 文件导出为独立 HTML(内嵌 mermaid 图表)或 PDF(通过浏览器打印对话框)

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:AnakinCao/dsh-md-export#5619392300540e9e2dc59c5ed3ed87091d09225d
README兼容性版本

兼容性与来源证明

Md Export 以 dsh-md-export 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/8/26

版本

0.1.0stable
2026/8/26

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/8/26
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 productivity-workflow 分类下经过校验的插件。

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Client Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / git-graph / pet / remote-web-ui / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Deepseek Ipptdeepseek-ipptiPolloWork PPT Studio 及其精选幻灯片模板,作为原生 DeepSeek Harness 对话视图。

README

dsh-md-export

简体中文:README.zh.md

DSH (DeepSeek Harness) Web plugin — Markdown export extension for dsh-better-sidebar.

Adds an Export button to the Markdown file viewer toolbar in better-sidebar. Click it to open a dropdown with two choices:

  • 📄 Save HTML (same directory) — Renders the current .md file into a standalone .html and writes it directly next to the .md file (Markdown tables / code blocks / Mermaid diagrams all inlined; layout follows the original md preview theme — not A4 print-oriented)
  • 🖨️ Export PDF (print) — Opens the browser print dialog (the printed content is the rendered document); choose "Save as PDF" to produce a PDF

Features

  • Zero-dependency, keeps built-in behavior: does not replace better-sidebar's built-in Markdown preview/edit (preview, edit, save and Mermaid rendering all remain); it only appends an export button to the toolbar
  • What you see is what you get: the exported HTML is taken directly from the built-in previewer's rendered DOM (including Mermaid SVG) — no second rendering pass
  • Saves next to the .md: writes the HTML into the md's directory via better-sidebar's /sidebar/api/fs.write channel (same basename, .html extension); falls back to a browser download if session detection fails
  • Layout follows the original md preview: the exported HTML uses the current preview theme's colors and typography (dark/light auto-follow), content width adapts — no A4 paper size
  • Edit-mode friendly: if you are in edit mode with unsaved content, export automatically switches to preview first
  • Auto-follow: the button appears on the Markdown toolbar whenever the file or preview/edit mode changes

Prerequisites

  • DSH dsh web running
  • dsh-better-sidebar installed (or the aggregator package @linxin666/dsh-web-ui-all that brings it in)

Install

dsh plugin --profile web add <dsh-md-export-0.1.0.tgz>

After installing, restart dsh web (a new bundle needs a host-side reload), then hard-refresh the browser (Cmd/Ctrl+Shift+R).

Open any .md file in the sidebar — the "Export ▾" button appears right next to the "Preview | Edit" toggle.

Usage

  1. Open any .md file in better-sidebar (e.g. docs/AOI端保存图片逻辑.md)
  2. Click the "Export ▾" button on the toolbar
  3. Choose:
    • Save HTML (same dir): the HTML is written next to the md (e.g. docs/AOI端保存图片逻辑.html), layout matches the md preview
    • Export PDF (print): the print dialog opens; choose "Save as PDF"

Development

node --check lib/client.js   # syntax check (hand-written single-file client bundle, no build step)
  • lib/index.js — host-side placeholder plugin (empty apply, so the loader entry mounts)
  • lib/client.js — client logic: MutationObserver watches the markdown toolbar → injects the export button + dropdown → grabs the preview DOM → saves next to the md via /sidebar/api/fs.write / triggers print

Implementation notes

StepHow
Button injectionMutationObserver watches document.body, finds .nArs4W_editorModeToggle (Markdown/HTML previewer toolbar) and injects when the current file is .md
Path resolutionTakes the md absolute path from the .nArs4W_editorPathInput title attribute; the output is the same directory + same basename + .html
Session detectionScans localStorage keys dsh-sidebar:v1:*, picks the newest sessionId
Save to same dirPOST /sidebar/api/fs.write (payload: sessionId + absolute path + HTML content); falls back to a browser download on failure
HTML layoutReads colors/fonts from .nArs4W_editorMd and the page theme; exported content width adapts (non-A4)
PDF exportWrites the same HTML into a hidden iframe → window.print() → user chooses "Save as PDF" in the print dialog

Known limitations

  • PDF export relies on the browser print feature (Chrome/Edge both support "Save as PDF"); it does not generate a .pdf binary directly, so PDF cannot be saved to the md directory
  • HTML save-to-same-dir depends on session detection (localStorage); in edge cases it falls back to a browser download
  • Depends on better-sidebar's internal CSS class names (nArs4W_ prefix); if a major better-sidebar upgrade changes the class names, this plugin needs a sync update
  • Only applies to .md files; .markdown extension is also supported

License

MIT