当前位置: 首页 > Skill >

marktodocx-skill

marktodocx-skill

marktodocx-skill

使用 marktodocx Node 运行时将 Markdown 转换为 DOCX,适用于用户明确要求转换 Markdown 内容或文件。

0.1.3 2026.11.14 998
获取Skill文件查看使用说明
作 者:顾澄 许可证: 更新时间:2026.11.14
本文目录展开

marktodocx-skill

Convert Markdown into DOCX using the shared Node runtime family in this repository.

Invocation

  • If the user provides a Markdown file path, treat $0 as inputPath and $1 as the optional outputPath.
  • If the user provides Markdown content instead of a file path, call the runtime programmatically with markdown and a suitable baseDir.
  • If the user wants style customization, map their request into stylePreset, marginPreset, styleJson, or styleSet.

Execution Rules

  1. Prefer the shared agent wrapper in skill.mjs, specifically convertWithAgentSkill(). Do not create a second conversion path.
  2. Require exactly one input source: either inputPath or inline markdown.
  3. Resolve style options through the wrapper so explicit parameters override environment defaults in the same way as the CLI.
  4. Preserve local image behavior by using the Markdown file directory for inputPath, or an explicit baseDir for inline Markdown.
  5. If the document contains Mermaid and @marktodocx/runtime-node-mermaid is unavailable, fail clearly instead of silently degrading.
  6. Report the output file path after a successful conversion.

Recommended Workflow

  1. Read README.md if the user is asking about supported conversion features or style configuration.
  2. Inspect skill.mjs to confirm the wrapper interface before invoking it.
  3. Run a Node command that imports convertWithAgentSkill() from ${CLAUDE_SKILL_DIR}/skill.mjs or from the repo-relative path when working from the repository root.
  4. Pass only the parameters required for the current request.
  5. Return a concise result that includes the written DOCX path and any relevant conversion constraints.

Parameter Mapping

  • inputPath: local Markdown file path.
  • outputPath: optional DOCX output path.
  • markdown: inline Markdown content.
  • baseDir: image-resolution base directory for inline Markdown.
  • stylePreset: default, minimal, or report.
  • marginPreset: default, compact, or wide.
  • styleJson: inline JSON string, JSON file path, or plain object serialized by the wrapper.
  • styleSet: dotted-path overrides such as body.fontSizePt=12;blockquote.italic=false.

Constraints

  • Do not invent style fields outside the shared styleOptions schema.
  • Do not silently ignore missing Mermaid support.
  • Do not claim conversion succeeded until the DOCX file has been written or bytes have been returned.

Mermaid Support

  • The skill published on ClawHub does not support Mermaid diagram conversion.
  • If the Markdown contains Mermaid code blocks, the published ClawHub skill should fail clearly instead of silently producing different output.
  • If you need Mermaid conversion, build and package the skill from the source repository with Mermaid support enabled, then deploy that exported artifact yourself.

Project Links

  • GitHub repository: zhao-kun/markdocx
  • GitHub Releases: marktodocx skill artifacts

Preview

Markdown source preview:

Markdown source preview

Generated DOCX preview:

相关文章

更多
使用 PicGo 搭建基于 GitHub 的稳定免费图床

针对公共图床失效导致 Markdown 文章图片丢失的问题,推荐使用 PicGo 工具配合 GitHub 公有仓库搭建个人图床。通过创建公有仓库、生成具有 repo 权限的 Token,并在 PicGo 中完成仓库与分支配置,即可实现稳定可靠的图片上传与管理。

2026.07.28 922
markdownify-mcp SSRF漏洞影响版本与修复指南

mcp-markdownify-server 1.2.0 以下版本存在服务端请求伪造(SSRF)风险,涉及 webpage-to-markdown、youtube-to-markdown、bing-search-to-markdown 和 git-repo-to-markdown 四个工具。该漏洞源于 URL 和仓库地址校验逻辑缺陷,攻击者可通过提示注入诱导服务访问内部资源或云元数据端点。CVSS 评分分别为 4.0 版本的 8.3 分和 3.1 版本的 7.4 分。建议立即将运行实例升级至 1.2.0 或更高版本以启用完整的 DNS 解析检查、重定向拦截及 SSH 简写拒绝机制。

2026.11.08 881
Typora 编辑器介绍与 v1.0.4 破解激活指南

Typora 是一款基于 GFM 标准的强大 Markdown 编辑器,以实时预览和无干扰界面著称。本文介绍了其核心功能如文件树管理和多格式导出,并详细记录了针对 Typora v1.0.4 版本的破解流程。通过安装 Python 和 Node.js 依赖,利用 typoraCracker 工具解包 app.asar 文件,替换 License.js 权限文件并重新打包,最终通过 keygen.js 生成有效序列号以解决激活弹窗问题。

2025.02.04 866
Typora 1.4.8 安装与破解激活指南

本文介绍 Typora 1.4.8 版本的安装及激活方法。该软件支持 macOS、Windows 及 Linux 系统,具备实时预览、多主题及数学公式等功能。由于百度网盘链接易被封禁,目前需通过微信公众号“Java技术迷”回复关键字“230223”获取破解补丁。安装时需将 winmm.dll 文件复制至软件目录以完成激活。

2025.04.24 827
PHP实现Markdown文章上传到七牛图床的实例内容

在使用 Markdown 编写文章后,手动上传图片管理不便。本文介绍使用 PHP 配合七牛云 SDK,通过正则匹配提取图片并批量上传至图床,最后替换本地路径以实现文章同步发布。

2026.08.01 816
2026年Typora破解与激活教程

本文介绍 Typora 在 2026 年的两种主要破解方式。第一种推荐适用于 Typora 1.3.8 版本,通过替换 winmm.dll 补丁实现永久激活;第二种适用于 1.2.4 版本,需修改 app.asar 文件并输入固定序列号。教程包含详细步骤、版本下载链接及注意事项,旨在帮助用户以非商用目的体验该 Markdown 编辑器。

2026.06.13 797
Skill 文件
  • SKILL.md
    • marktodocx-skill
    • Invocation
    • Execution Rules
    • Recommended Workflow
    • Parameter Mapping
    • Constraints
    • Mermaid Support
    • Project Links
    • Preview
  • 项目或源文件

相关 Skill

更多
MD to Mobile Image MD to Mobile Image 将 Markdown 文件转换为高对比度、适配移动端的 PNG 图片,专为 Telegram 和社交媒体分享优化。
Slidev Assist Slidev Assist 接收主题或原始材料(研究报告、数据、文案、PPTX等),AI解析生成Markdown,调用Slidev输出可演示的HTML幻灯片
Publish to dochost Publish to dochost 将 Markdown 或 HTML 发布到干净、可共享的 dochost.io 链接并返回 URL 给用户。当用户说“发布这个”“把这个分享为链接”等时使用。
Karpathy Wiki Karpathy Wiki 构建、维护、查询并审查持久化的 Markdown 知识库 wiki,置于原始资料和最终答案之间,适用于个人或团队管理。
zt-web-fetcher zt-web-fetcher 当需要获取网页内容时使用(搜索结果页面、博客文章、文档等)。使用 URL 转 Markdown 服务将网页转换为可读文本。 触发场景:用户说"帮我查一下"、"看看这个链接"、"获取 xx 的信息"等需要上网抓信息的情况。