← 返回 Skills 市场
164
总下载
1
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install kip2-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...
使用说明 (SKILL.md)
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
安全使用建议
This skill appears to do exactly what it says. Before installing/using: ensure pandoc is installed on the host (the script will fail otherwise), and be aware that the script will write the specified output path and create parent directories if needed. Review any custom templates or CSS you pass in to make sure they don't reference remote resources you don't want embedded or fetched. When using raw Markdown input the script writes a temporary file (deleted afterwards). The script invokes pandoc as a subprocess (no shell interpolation), which is normal — if you run untrusted Markdown or templates, consider running in a restricted environment.
功能分析
Type: OpenClaw Skill
Name: kip2-markdown-to-html
Version: 0.5.0
The skill is a legitimate utility for converting Markdown to HTML using Pandoc. The core logic in scripts/markdown_to_html.py securely handles command execution by passing arguments as a list to subprocess.run, effectively preventing shell injection. No indicators of data exfiltration, malicious intent, or prompt injection were found in the code or documentation.
能力评估
Purpose & Capability
Name/description match the implementation: the code and SKILL.md both implement a pandoc-based Markdown→HTML converter with built-in templates and optional custom templates/CSS. There are no unrelated environment variables, binaries, or config paths requested.
Instruction Scope
SKILL.md instructs the agent to run the included Python script which constructs and runs a pandoc command. All inputs and outputs are local file paths or a raw Markdown string. The instructions and code do not reference external endpoints, unrelated system files, or broad data collection. The script only reads provided files (input, template, css, metadata) and writes the specified output.
Install Mechanism
No install spec is provided (instruction-only + bundled script). Nothing is downloaded or extracted. The only external dependency is the expectation that the pandoc binary is installed and on PATH; that is reasonable and explicitly documented.
Credentials
The skill requires no environment variables, credentials, or config paths. The resources it accesses (input file, templates, CSS, optional metadata) are proportional to its purpose.
Persistence & Privilege
always is false and the skill does not request system-wide persistence or modify other skills. It creates a temporary file when converting raw Markdown and removes it; it creates the output directory if needed (typical behavior).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install kip2-markdown-to-html - 安装完成后,直接呼叫该 Skill 的名称或使用
/kip2-markdown-to-html触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.5.0
- Added --no-body-background flag to remove the article card background, border, and shadow from output HTML.
- Updated SKILL.md with expanded usage instructions and detailed template/layout behavior, including guidance for --toc and --number-sections.
- Clarified section-numbering rules to prevent duplicate headings when using numbered sections.
- Improved instructions and documentation for layout flags and appearance control.
- Removed unused agents/openai.yaml file.
v0.4.0
- No user-facing changes found in this version.
- Internal file scripts/markdown_to_html.py was modified.
v0.3.0
- Updated raw string example in documentation from Chinese to English for broader accessibility.
- No functional or command-line changes; documentation is now easier to understand for English-speaking users.
v0.2.0
- Updated all usage and workflow command examples to use shorter, more portable paths (e.g. python3 scripts/markdown_to_html.py).
- No changes to functionality or features; documentation now easier to follow and apply.
v0.1.0
Initial release of markdown-to-html skill.
- Converts Markdown files or raw Markdown strings into polished HTML using Pandoc.
- Supports custom HTML templates, built-in HTML themes, and adding custom CSS.
- Includes technical, editorial, dark product, and print-inspired built-in templates.
- Output is a standalone HTML document; optional features include table of contents, numbered sections, embedded assets, and metadata.
- Flexible input methods and simple CLI workflow provided.
元数据
常见问题
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 164 次。
如何安装 markdown-to-html?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install kip2-markdown-to-html」即可一键安装,无需额外配置。
markdown-to-html 是免费的吗?
是的,markdown-to-html 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
markdown-to-html 支持哪些平台?
markdown-to-html 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 markdown-to-html?
由 King(@mutour)开发并维护,当前版本 v0.5.0。
推荐 Skills