markdown-to-html

Convert Markdown documents to HTML using marked.js, pandoc, gomarkdown, Jekyll, or Hugo.

1|1|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/ultraviollettnympho/transit-ticket --skill markdown-to-html-ultraviollettnympho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: markdown-to-html
Source: https://github.com/ultraviollettnympho/transit-ticket/tree/main/.github/skills/markdown-to-html
Command: npx skills add https://github.com/ultraviollettnympho/transit-ticket --skill markdown-to-html-ultraviollettnympho

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Converting Markdown files to HTML requires choosing the right parser, configuring flavors like GFM or CommonMark, and handling edge cases such as tables, math expressions, and collapsed sections, which is error-prone without guidance. ## Core Features & Use Cases - Multi-Tool Conversion Guidance: Step-by-step workflows for marked.js (Node.js/CLI), pandoc, gomarkdown/markdown (Go), Jekyll, and Hugo. - Syntax-to-HTML Reference Mappings: Detailed Markdown-to-HTML conversion examples for headings, tables, code blocks, collapsed sections, and mathematical expressions. - Security and Troubleshooting: Sanitization guidance (DOMPurify, Bluemonday) and fixes for common issues like broken tables, missing line breaks, and XSS risks. - Use Case: A developer building a static site with Hugo can use this Skill to configure Goldmark extensions, enable raw HTML rendering, and troubleshoot content that fails to render. ## Quick Start Ask the AI to convert a Markdown file to HTML using marked or pandoc, specifying any options like GFM tables or standalone document output.

Frequently Asked Questions about markdown-to-html

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Markdown to HTML from the command line?

Use marked with `marked -i input.md -o output.html` after installing via npm, or use pandoc with `pandoc input.md -s -o output.html` for a standalone document. Go users can install mdtohtml with `go install github.com/gomarkdown/mdtohtml@latest`.

marked.js vs pandoc for Markdown to HTML conversion?

marked.js is a JavaScript library suited for Node.js apps and browser rendering with GFM support. Pandoc is a universal document converter supporting many input and output formats beyond HTML, including PDF, LaTeX, and Word.

Does marked.js sanitize HTML output?

No, marked does not sanitize output HTML. For untrusted Markdown input, pipe the result through DOMPurify or sanitize-html before rendering it in a browser to prevent XSS attacks.

Why are my Markdown tables not rendering as HTML?

Tables require GitHub Flavored Markdown support. Enable `gfm: true` in marked, use `-f gfm` in pandoc, or enable `parser.Tables` in gomarkdown. Also verify the table uses proper pipe and dash separator syntax.

How do I render raw HTML inside Hugo Markdown content?

Hugo's default Goldmark renderer blocks raw HTML. Set `unsafe = true` under `[markup.goldmark.renderer]` in hugo.toml to allow raw HTML passthrough in your Markdown files.

How do I convert Markdown math expressions to HTML?

Use pandoc with the `--mathml` or `--mathjax` flag to convert TeX math into MathML or MathJax-rendered output. In gomarkdown, enable the `parser.MathJax` extension for LaTeX math support.