| type | skill |
| lifecycle | stable |
| name | md-to-html |
| description | Convert Markdown to standalone HTML pages with embedded CSS, images, and Mermaid diagrams |
| tier | standard |
| inheritance | inheritable |
| applyTo | **/*md-to-html*,**/*convert*html* |
| muscle | .github/muscles/md-to-html.cjs |
| currency | 2026-04-30T00:00:00.000Z |
| lastReviewed | 2026-04-30T00:00:00.000Z |
Markdown to HTML Conversion
Write in Markdown, share as a polished web page — zero dependencies for viewers
Convert Markdown documents into self-contained HTML files with embedded CSS, base64 images, and Mermaid diagram rendering. Ready for quick-share distribution, offline viewing, print, or email attachment.
When to Use
- Sharing formatted documents without requiring Word or PDF viewers
- Creating self-contained HTML pages for offline distribution
- Generating printable web pages from Markdown sources
- Quick previews of documentation with professional styling
- Email attachments that open in any browser
- Static site generation from Markdown sources
Supported Formatting
| Format | Status | Notes |
|---|
| Headings | ✅ | H1-H6 with styled colors |
| Bold/Italic | ✅ | Standard emphasis |
| Links | ✅ | Styled with underline on hover |
| Images | ✅ | Base64 embedded or linked |
| Code blocks | ✅ | Syntax highlighting, monospace font |
| Inline code | ✅ | Background highlight |
| Tables | ✅ | Striped rows, header styling |
| Blockquotes | ✅ | Left border, italic style |
| Lists | ✅ | Ordered, unordered, nested |
| Task lists | ✅ | Checkbox rendering |
| Mermaid diagrams | ✅ | PNG or table fallback |
| SVG | ✅ | Inline or base64 embedded |
| Horizontal rules | ✅ | Styled dividers |
| Footnotes | ✅ | Via pandoc |
| Math (KaTeX) |