md-to-html
NewConverts Markdown files to standalone HTML with Mermaid diagram support. Use when the user wants to convert a .md file to HTML, says "md to html", "markdown to html", "convert markdown", "mermaid html", or provides a .md file path for HTML export.
Summary
This skill converts Markdown files into standalone HTML pages with built-in support for Mermaid diagrams, tables, and code blocks.
- It automatically fetches the Mermaid rendering library and applies GitHub-like styling, making it ideal for sharing technical documentation or notes as polished web pages.
Overview
MD to HTML Converter
Converts a Markdown file to a styled, self-contained HTML file. Supports Mermaid diagrams, tables, fenced code blocks, and all standard Markdown.
Quick start
node ~/.cursor/skills/md-to-html/scripts/convert.js /path/to/file.mdOutput: /path/to/file.html and mermaid.min.js in the same directory.
What the script does
- Reads the
.mdfile - Installs
markedon first run (vianpm install --prefix) - Converts Markdown → HTML using
marked - Transforms
<pre><code class="language-mermaid">blocks →<div class="mermaid">so Mermaid renders them - Downloads
mermaid.min.jsfromhttps://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js(only if not already present) - Writes a full HTML page with GitHub-like CSS + Mermaid support
When user provides a file
Run the script directly — no extra setup needed. Node.js is required (pre-installed on macOS).
node ~/.cursor/skills/md-to-html/scripts/convert.js "$MD_FILE_PATH"Then open the resulting .html file in a browser.
Install & Usage
mkdir -p .claude/skillsAdd the configuration to .claude/skills/md-to-html.md
/md-to-htmlUse Cases
Usage Examples
/md-to-html convert my-documentation.md
Convert the file README.md to HTML with Mermaid support
Run md-to-html on /path/to/notes.md and open the result
Security Audits
Frequently Asked Questions
What is md-to-html?
This skill converts Markdown files into standalone HTML pages with built-in support for Mermaid diagrams, tables, and code blocks. It automatically fetches the Mermaid rendering library and applies GitHub-like styling, making it ideal for sharing technical documentation or notes as polished web pages.
How to install md-to-html?
To install md-to-html: create the skills directory (mkdir -p .claude/skills), then add the config to .claude/skills/md-to-html.md. Finally, /md-to-html in Claude Code.
What is md-to-html best for?
md-to-html is a other categorized under Documentation. Created by vochinguyen.
What can I use md-to-html for?
md-to-html is useful for: Convert a README.md into a self-contained HTML file for sharing with non-technical stakeholders.; Generate a styled HTML report from a Markdown document containing Mermaid flowcharts and sequence diagrams.; Quickly preview a Markdown file as a web page without needing a separate Markdown viewer or server.; Create a portable HTML version of project documentation that can be opened offline in any browser.; Transform meeting notes or technical specs written in Markdown into a clean, readable HTML format.; Produce a single-file HTML output that includes embedded diagrams for use in presentations or wikis..