← 返回
未分类 中文

markdown-export

Convert a Markdown file or raw Markdown string into polished DOCX or HTML output from one unified skill. Supports custom DOCX reference templates, custom Pan...
将 Markdown 文件或原始 Markdown 字符串统一转换为精美的 DOCX 或 HTML 输出,支持自定义 DOCX 参考模板和 Pandoc 过滤器。
mutour mutour 来源
未分类 clawhub v0.5.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 475
下载
💾 0
安装
1
版本
#latest

概述

Markdown Export

Use this skill when the user wants one Markdown source exported into docx, html, or both.

What this skill provides

  • One unified CLI for both docx and html
  • Input from either a Markdown file or a raw Markdown string
  • Built-in templates for both output formats
  • Custom template support for both output formats
  • Optional table of contents, numbered headings, metadata, and resource-path support
  • HTML layout controls for optional TOC panel and plain article body rendering

Formats

  • docx

Uses a Word reference.docx style template

  • html

Uses a Pandoc HTML template plus CSS

Built-in template names

DOCX

  • modern-blue
  • executive-serif
  • warm-notebook
  • minimal-gray

HTML

  • docs-slate
  • magazine-amber
  • product-midnight
  • serif-paper

List everything with:

python3 scripts/export_markdown.py --list-templates

Only list one format with:

python3 scripts/export_markdown.py --format html --list-templates

Main examples

Markdown to DOCX

python3 scripts/export_markdown.py \
  --format docx \
  --input-file /abs/path/source.md \
  --output /abs/path/output.docx \
  --builtin-template modern-blue \
  --toc \
  --number-sections

Markdown to HTML

python3 scripts/export_markdown.py \
  --format html \
  --input-file /abs/path/source.md \
  --output /abs/path/output.html \
  --builtin-template docs-slate \
  --toc \
  --embed-assets

Markdown to HTML Without TOC Background Card

python3 scripts/export_markdown.py \
  --format html \
  --input-file /abs/path/source.md \
  --output /abs/path/output.html \
  --builtin-template docs-slate \
  --embed-assets \
  --no-body-background

Raw string

python3 scripts/export_markdown.py \
  --format html \
  --markdown '# Release Notes\n\n- Export to both HTML and DOCX with one skill' \
  --output /abs/path/release.html \
  --builtin-template magazine-amber \
  --title 'Release Notes'

Template rules

  • docx

--template must point to a .docx reference document

  • html

--template must point to a Pandoc HTML template that contains $body$

  • For HTML, built-in CSS is automatically applied when using a built-in template
  • For HTML, extra --css files are appended after built-in CSS
  • For HTML, omitting --toc removes the TOC panel and expands the article body to full width
  • For HTML, --no-body-background removes the article panel background, border, and shadow while keeping the page theme

Bundled files

  • Unified converter: scripts/export_markdown.py
  • DOCX built-in templates: assets/docx/templates/*.docx
  • HTML built-in templates: assets/html/templates/*.html
  • HTML built-in styles: assets/html/styles/*.css

Notes

  • This skill expects pandoc to be installed and available on PATH
  • If the user already has a brand template, prefer passing --template

版本历史

共 1 个版本

  • v0.5.0 当前
    2026-05-03 06:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 279 📥 116,852
office-efficiency

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 387 📥 147,474
office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 932 📥 187,347