github/awesome-copilot/markdown-to-html
Claude Code and agent skill by github/awesome-copilot
- community
- ext:[{"type":"template","description":"Custom templates for code generation"},{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Convert Markdown files to HTML similar to `marked.js`, `pandoc`, `gomarkdown/markdown`, or similar tools; or writing custom script to convert markdown to html and/or working on web template systems like `jekyll/jekyll`, `gohugoio/hugo`, or similar web templating systems that utilize markdown documents, converting them to html. Use when asked to "convert markdown to html", "transform md to html", "render markdown", "generate html from markdown", or when working with .md files and/or web a templating system that converts markdown to HTML output. Supports CLI and Node.js workflows with GFM, CommonMark, and standard Markdown flavors.
Install
npx vskill@latest install github/awesome-copilot/markdown-to-htmlSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Markdown to HTML Conversion
Expert skill for converting Markdown documents to HTML using the marked.js library, or writing data conversion scripts; in this case scripts similar to markedJS/marked repository. For custom scripts knowledge is not confined to marked.js, but data conversion methods are utilized from tools like pandoc and gomarkdown/markdown for data conversion; jekyll/jekyll and gohugoio/hugo for templating systems.
The conversion script or tool should handle single files, batch conversions, and advanced configurations.
When to Use This Skill
- User asks to "convert markdown to html" or "transform md files"
- User wants to "render markdown" as HTML output
- User needs to generate HTML documentation from .md files
- User is building static sites from Markdown content
- User is building template system that converts markdown to html
- User is working on a tool, widget, or custom template for an existing templating system
- User wants to preview Markdown as rendered HTML
Converting Markdown to HTML
Essential Basic Conversions
For more see basic-markdown-to-html.md
Code Block Conversions
For more see code-blocks-to-html.md
Collapsed Section Conversions
For more see collapsed-sections-to-html.md
Mathematical Expression Conversions
For more see writing-mathematical-expressions-to-html.md
Table Conversions
For more see tables-to-html.md
Working with `markedJS/marked`
Prerequisites
- Node.js installed (for CLI or programmatic usage)
- Install marked globally for CLI:
npm install -g marked - Or install locally:
npm install marked
Quick Conversion Methods
See marked.md Quick Conversion Methods
Step-by-Step Workflows
See marked.md Step-by-Step Workflows
CLI Configuration
Using Config Files
Create ~/.marked.json for persistent options:
Or use a custom config:
CLI Options Reference
| Option | Description | |
|---|---|---|
-i, --input <file> | Input Markdown file | |
-o, --output <file> | Output HTML file | |
-s, --string <string> | Parse string instead of file | |
-c, --config <file> | Use custom config file | |
--gfm | Enable GitHub Flavored Markdown | |
--breaks | Convert newlines to <br> | |
--help | Show all options |
Security Warning
⚠️ Marked does NOT sanitize output HTML. For untrusted input, use a sanitizer:
Recommended sanitizers:
- DOMPurify (recommended)
- sanitize-html
- js-xss
Supported Markdown Flavors
| Flavor | Support | |
|---|---|---|
| Original Markdown | 100% | |
| CommonMark 0.31 | 98% | |
| GitHub Flavored Markdown | 97% |
Troubleshooting
| Issue | Solution | |
|---|---|---|
| Special characters at file start | Strip zero-width chars: content.replace(/^[\u200B\u200C\u200D\uFEFF]/,"") | |
| Code blocks not highlighting | Add a syntax highlighter like highlight.js | |
| Tables not rendering | Ensure gfm: true option is set | |
| Line breaks ignored | Set breaks: true in options | |
| XSS vulnerability concerns | Use DOMPurify to sanitize output |
Working with `pandoc`
Prerequisites
- Pandoc installed (download from <https://pandoc.org/installing.html>)
- For PDF output: LaTeX installation (MacTeX on macOS, MiKTeX on Windows, texlive on Linux)
- Terminal/command prompt access
Quick Conversion Methods
Method 1: CLI Basic Conversion
Method 2: Filter Mode (Interactive)
Method 3: Format Conversion
CLI Configuration
| Option | Description | |
|---|---|---|
-f, --from <format> | Input format (markdown, html, latex, etc.) | |
-t, --to <format> | Output format (html, latex, pdf, docx, etc.) | |
-s, --standalone | Produce standalone document with header/footer | |
-o, --output <file> | Output file (inferred from extension) | |
--mathml | Convert TeX math to MathML | |
--metadata title="Title" | Set document metadata | |
--toc | Include table of contents | |
--template <file> | Use custom template | |
--help | Show all options |
Security Warning
⚠️ Pandoc processes input faithfully. When converting untrusted markdown:
- Use
--sandboxmode to disable external file access - Validate input before processing
- Sanitize HTML output if displayed in browsers
Supported Markdown Flavors
| Flavor | Support | |
|---|---|---|
| Pandoc Markdown | 100% (native) | |
| CommonMark | Full (use -f commonmark) | |
| GitHub Flavored Markdown | Full (use -f gfm) | |
| MultiMarkdown | Partial |
Troubleshooting
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/markdown-to-html/SKILL.md
Popularity
- Repository stars
- 27,102
- Repository forks
- 3,143
- 7-day trend score
- 51
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 8 months ago.
Extension points
templateCustom templates for code generationconfigConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/github/awesome-copilot/markdown-to-html)