360 Secure SkillHub
360 安全技能中心

Markdown to HTML Converter

读取 Markdown 文件并生成单文件独立 HTML,内置响应式样式与代码高亮,可选自动目录、light/dark/classic 主题和自定义标题;输出无外部依赖,便于作为网页、博客或文档页面发布。

terrycarter1985
terrycarter1985
热度 42.03
最近更新 2026-08-27 07:51:09
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换 / 博客写作

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add terrycarter1985/markdown-to-html
Metadata
name
markdown-to-html
description
Convert Markdown files to standalone styled HTML with syntax highlighting, table of contents, and responsive design. Use when the user wants to publish markdown content as a web page, blog post, or documentation page with professional styling.
metadata
{"openclaw":{"requires":{"bins":["node"]}}}

Markdown to HTML Converter

Converts Markdown files to standalone, styled HTML pages.

Usage

node scripts/convert.mjs input.md -o output.html

Options

Flag Description Default
-o, --output <path> Output HTML file path <input>.html
-t, --title <text> Page title Derived from filename
--toc Include table of contents false
--theme <name> Theme: light, dark, classic light
--highlight Enable syntax highlighting true

Examples

# Basic conversion
node scripts/convert.mjs README.md

# With TOC and dark theme
node scripts/convert.mjs article.md -o article.html --toc --theme dark

# Custom title
node scripts/convert.mjs notes.md -o notes.html -t "My Notes"

Output Features

  • Responsive design (mobile-friendly)
  • Syntax highlighting for code blocks
  • Optional auto-generated table of contents
  • Print-friendly styles
  • Standalone single file (no external dependencies)