/install kip2-markdown-to-html
Markdown To HTML
Use this skill when the user wants a Markdown file or Markdown string converted into a polished HTML page.
What this skill provides
- Deterministic conversion through
pandoc - Input from either a Markdown file or a raw Markdown string
- Custom HTML template support through
--template /path/to/template.html - Custom CSS support through
--css /path/to/file.css - Built-in HTML themes in
assets/templates/andassets/styles/ - Optional table of contents, numbered headings, metadata, and embedded assets
Quick workflow
- Choose the input source.
File input: pass
--input-file /abs/path/file.mdRaw string input: pass--markdown '...' - Choose a layout.
Use
--templatefor a fully custom Pandoc HTML template. Otherwise use--builtin-template. - Optionally add one or more CSS files with
--css. - Set output with
--output /abs/path/output.html. - Optional layout flags:
Use
--tocto render a table of contents panel. Use--no-body-backgroundto remove the article card background, border, and shadow.
Built-in templates
docs-slate: technical docs layout with restrained slate tonesmagazine-amber: editorial landing-page feel with warm contrastproduct-midnight: dark product narrative with stronger gradientsserif-paper: print-inspired article layout
List them at runtime with:
python3 scripts/markdown_to_html.py --list-templates
Main command
python3 scripts/markdown_to_html.py \
--input-file /abs/path/source.md \
--output /abs/path/output.html \
--builtin-template docs-slate \
--toc \
--number-sections \
--embed-assets
Raw string example
python3 scripts/markdown_to_html.py \
--markdown '# Release Notes\
\
- Added HTML export\
- Added built-in themes' \
--output /abs/path/release.html \
--builtin-template magazine-amber \
--title 'Release Notes'
Template rules
--templateoverrides--builtin-template- Built-in templates automatically include their matching built-in CSS
- Extra
--cssfiles are appended after the built-in CSS, so local overrides win --number-sectionsenables Pandoc heading numbering in the generated HTML- When
--number-sectionsis enabled, avoid manually writing heading prefixes like1.,2.1, or3.2inside the Markdown heading text, or the output will show duplicated numbering such as1.2.1 2.1 Title - When
--tocis omitted, the built-in templates render only the article body and expand it to the full content width --no-body-backgroundremoves the article panel background, border, and shadow while keeping the overall page theme
Bundled files
- Converter:
scripts/markdown_to_html.py - Built-in templates:
assets/templates/*.html - Built-in CSS themes:
assets/styles/*.css
Notes
- This skill expects
pandocto be installed and available onPATH - Custom templates should be valid Pandoc HTML templates and include
$body$ - If you want a table of contents without visible heading numbers in the HTML body, use
--tocwithout--number-sections
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install kip2-markdown-to-html - After installation, invoke the skill by name or use
/kip2-markdown-to-html - Provide required inputs per the skill's parameter spec and get structured output
What is markdown-to-html?
Convert a Markdown file or raw Markdown string into a polished HTML document. Supports custom Pandoc HTML templates, custom CSS, and includes built-in HTML t... It is an AI Agent Skill for Claude Code / OpenClaw, with 164 downloads so far.
How do I install markdown-to-html?
Run "/install kip2-markdown-to-html" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is markdown-to-html free?
Yes, markdown-to-html is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does markdown-to-html support?
markdown-to-html is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created markdown-to-html?
It is built and maintained by King (@mutour); the current version is v0.5.0.