/gh-markdown:md-to-htmlfrom gh-markdown
Convert Markdown files to self-contained, standalone HTML with GitHub's rendering style. Uses marked for GFM parsing, inlines github-markdown-css, and renders embedded mermaid diagrams via a bundled mermaid.min.js — all with zero external network requests. Requires only Node.js. Use when the user asks to "convert md to html", "render markdown as html", "github-style html from markdown", "render mermaid diagrams in html", or wants an HTML version of a .md file that looks like GitHub.
Ships in gh-markdown. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Convert .md files to fully self-contained .html files styled like GitHub's markdown renderer, including rendered mermaid diagrams.
Run the bundled script:
node ${CLAUDE_PLUGIN_ROOT}/skills/md-to-html/scripts/md-to-html.mjs <input.md> [output.html]
<input-name>.html next to the source file.marked is auto-installed on first run)..md filemarked (full GFM spec: tables, strikethrough, autolinks, task lists)```mermaid fenced blocks and rewrites them as <pre class="mermaid"><article class="markdown-body">github-markdown-css v5.8.1 (auto light/dark theme via prefers-color-scheme)mermaid.min.js only when the source contains mermaid blocks, and initialises it with a theme matching the user's color scheme.html file (no external CSS/JS, no network requests)Fenced blocks tagged mermaid are rendered client-side:
```mermaid
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Do thing]
B -->|No| D[Skip]
```
prefers-color-scheme; the page reloads on theme change to re-render diagrams.gfm: true for full GitHub Flavored Markdown support.assets/github-markdown.min.css for offline use.assets/mermaid.min.js that exposes globalThis.mermaid.# github-markdown-css
curl -sL "https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/<VERSION>/github-markdown.min.css" \
-o ${CLAUDE_PLUGIN_ROOT}/skills/md-to-html/assets/github-markdown.min.css
# mermaid (any v11.x)
curl -sL "https://cdn.jsdelivr.net/npm/mermaid@<VERSION>/dist/mermaid.min.js" \
-o ${CLAUDE_PLUGIN_ROOT}/skills/md-to-html/assets/mermaid.min.js
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub inventage-ai/claude-code --plugin gh-markdown