D
dsh-wechat-format
v0.1.0 · 1 天前发布
DeepSeek Harness 插件:微信公众号 Markdown 排版工具(wechat_format),输出全内联样式 HTML
README
dsh-wechat-format
DeepSeek Harness 插件:微信公众号 Markdown 排版工具。
将 Markdown 转换为微信公众号正文兼容的全内联样式 HTML(无 class、无 <style>、图片 base64 内嵌),输出可直接粘贴进公众号编辑器。渲染核心来自 md-wechat-formatter。
提供的工具
wechat_format
| 参数 | 必填 | 说明 |
|---|---|---|
| markdown | 是 | 文章完整 Markdown 文本 |
| theme | 否 | 主题 id:blue-tech(默认)/ orange-heart / violet / green / night |
| imageFiles | 否 | 文中图片对应的本地文件路径列表,按文件名匹配后以 base64 内嵌 |
返回:{ html, warnings, theme }。html 即可直接粘贴的公众号正文 HTML;未匹配到的图片会进入 warnings。
安装(发布包)
包内 cordis.patch.yml 已由 package.json 的 dsh.bundle.patch 声明,安装即自动注册工具:
```bash
从 tarball(npm pack 产物)
dsh plugin --profile headless add ./dsh-wechat-format-0.1.0.tgz
从 npm(发布后)
dsh plugin add dsh-wechat-format
从 GitHub(
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-wechat-format
- Repo
- —
- Engines
{}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}