DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
M

@local/markdown-export

Markdown Export

通过浏览器打印对话框,将打开的 Markdown 文档导出为独立的 HTML 文件或 PDF。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:ZhaoChongyan/dsh-markdown-export#d438aeb71724ee4bdf2fb674367e4b03412ca6c2
README兼容性版本

兼容性与来源证明

Markdown Export 以 @local/markdown-export 发布,当前版本为 1.2.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

1.2.2stable
2026/10/27

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Experimental Schedule Bundle@deepseek-ai/dsh-experimental-schedule-bundle为 Web 组合添加 Schedule、其任务页面和时间上下文的可选捆绑包Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / pet / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Ab Ocrdsh-ab-ocr--- description: "外部 ocr 工具:逐页识别扫描的 PDF 或图像,仅在处理完最后一页后按顺序合并页面,并使用模型确定的标题级别保存为一个 Markdown 文档。" kind: "package-reference" ---

README

Markdown Export

中文文档 · English

A DeepSeek Harness plugin that adds Export to the Markdown document preview. Turn the Markdown file you have open into a self-contained HTML file, or a PDF, without leaving the app.

Features

  • Export → HTML document — downloads a single .html file with inline styles and local images embedded as data URIs. The file works offline and can be sent to anyone.
  • Export → PDF document — renders the same document in a hidden print frame and opens the system print dialog; choose a PDF printer or "Save as PDF".
  • Markdown only — the button appears only for .md / .markdown files in the document preview toolbar.
  • Reads what the preview reads — the source is read through the Harness workspaceFiles Remote, so the export always reflects the current file on the Host.
  • Localized — Chinese and English UI text follow the app locale.

Supported Markdown

GroupSyntax
HeadingsATX (#) and Setext (=== / ---), auto-generated anchor ids
Emphasis**bold**, *italic*, ***both***, ~~strikethrough~~, \inline code``
BlocksParagraphs, hard line breaks, horizontal rules, blockquotes (nested)
ListsOrdered / unordered, nested, task lists (- [x]), loose and tight lists
CodeFenced blocks with language label, indented code blocks
TablesGFM tables with :---, :---:, ---: alignment
Links & images[text](url), <https://…>, ![alt](path), titles
Footnotes[^id] references and [^id]: definition
OtherYAML front matter (used for the title only, stripped from output)

Raw HTML is escaped rather than rendered, and javascript: / vbscript: URLs are dropped, so an exported file is safe to share.

How it works

  1. client.js registers a list entry in the sidebar.right.tab.document.actions slot of the built-in document preview.
  2. On click, the Markdown file is read with ctx.remote.workspaceFiles.readBytes(...).
  3. The built-in renderer parses the Markdown into HTML, applies the export stylesheet, resolves relative image paths against the file's directory, and embeds up to 16 local images (bounded at 10 MiB total).
  4. HTML: a Blob URL is created and downloaded as <file-name>.html.
  5. PDF: the same HTML is loaded into a hidden iframe and print() is called; the print stylesheet handles page margins and break-inside: avoid for code blocks, tables, and images.

The Host half (index.js) is empty — everything happens in the browser.

Installation

Install the bundle as a local package in the current profile:

  1. Open the DeepSeek Harness Web UI.
  2. Install this directory as a bundle, e.g. with the plugin manager's install_bundle action and the absolute path to this folder.
  3. The change applies immediately; refresh the page if it was already open.

The package declares dsh.bundle.patch (cordis.patch.yml, which inserts the markdown-export row) and a dsh.client section with the required client packages. No dependencies or build step are needed.

Usage

  1. Open a .md file from the workspace file tree so it shows in the right-hand preview.
  2. Click Export in the preview's toolbar (next to the reload button).
  3. Choose a format:
    • HTML document — the file is downloaded straight away.
    • PDF document — pick a PDF printer or "Save as PDF" in the dialog that opens.

Project structure

markdown-export/
├── package.json          # bundle manifest (dsh.bundle + dsh.client)
├── cordis.patch.yml      # inserts the plugin row
├── index.js              # Host half (no-op)
├── client.js             # Markdown renderer + toolbar action
├── icon.svg              # plugin icon
└── locale/
    ├── en.json           # English display metadata
    └── zh.json           # Chinese display metadata

Limitations

  • PDF output uses the browser's print pipeline, so the file is produced by the print dialog rather than downloaded directly.
  • Only the part of the document the preview has loaded is available: the export reads the file through the documented workspace API, so very large files are subject to its read limits.
  • Local images are embedded from disk; remote http(s) images stay as links and need network access when the HTML is opened.
  • Syntax highlighting is limited to the language label above a fenced code block.

License

MIT