Cai-Chengyu/dsh-docx-export ↗★ 0

dsh-docx-export

将生成的Markdown文本导出为Word文档 适合需要将对话内容直接排版并导出为标准Word文档的用户。

包名
dsh-docx-export
兼容性
待验证
版本
1.0.0
许可证
MIT
最近更新
2026年10月6日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Cai-Chengyu/dsh-docx-export

Configuration (optional)

Override defaults in the profile's cordis.patch.yml:

- id: docx-export
  name: dsh-docx-export
  config:
    toolName: export_docx          # rename on collision
    outputDir: "D:/exports"        # default output directory ("" = session working directory)
    fontFamily: Calibri            # Latin body font
    eastAsiaFont: 微软雅黑          # East Asian body font
    monoFont: Consolas             # code font
    fontSize: 11                   # body size in points
    pageSize: a4
    toc: false                     # insert a TOC by default
    footer: true                   # page numbers by default
    allowOutsideWorkspace: false    # may the tool write outside the session workspace
    allowedRoots: []               # extra directories that are allowed
    maxContentChars: 400000        # per-export body limit

Write scope (safe by default)

The tool reads and writes only inside the session working directory unless the profile says otherwise. An out-of-scope path is refused with an actionable message; grant specific locations with allowedRoots, or set allowOutsideWorkspace: true. Pictures are embedded only when they live inside the allowed scope.