π¦ ClawHub
markdown-export
by @mutour
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...
TERMINAL
clawhub install markdown-exportπ About This Skill
name: markdown-export description: Convert a Markdown file or raw Markdown string into polished DOCX or HTML output from one unified skill. Supports custom DOCX reference templates, custom Pandoc HTML templates, custom CSS, and includes built-in templates for both formats. Use this skill when the user asks to export Markdown into Word, HTML, or multiple publication formats from the same source.
Markdown Export
Use this skill when the user wants one Markdown source exported into docx, html, or both.
What this skill provides
docx and htmlFormats
docxreference.docx style template
htmlBuilt-in template names
DOCX
modern-blueexecutive-serifwarm-notebookminimal-grayHTML
docs-slatemagazine-amberproduct-midnightserif-paperList 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$
--css files are appended after built-in CSS--toc removes the TOC panel and expands the article body to full width--no-body-background removes the article panel background, border, and shadow while keeping the page themeBundled files
scripts/export_markdown.pyassets/docx/templates/*.docxassets/html/templates/*.htmlassets/html/styles/*.cssNotes
pandoc to be installed and available on PATH--templateπ Tips & Best Practices
pandoc to be installed and available on PATH--template