markdown-to-html

Convert Markdown files to sanitized HTML with templates.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/BrunoAMSilva/my-config --skill markdown-to-html-brunoamsilva
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: markdown-to-html
Source: https://github.com/BrunoAMSilva/my-config/tree/main/coding/skills/markdown-to-html
Command: npx skills add https://github.com/BrunoAMSilva/my-config --skill markdown-to-html-brunoamsilva

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Converting Markdown into reliable HTML often requires juggling different flavours, preserving code blocks and math, and ensuring output is safe for web use; this Skill centralizes best practices and tool-specific workflows so users can produce consistent HTML without manual cleanup.

Core Features & Use Cases

  • Format-preserving conversion: Handles CommonMark and GitHub Flavored Markdown nuances, tables, task lists, code fences, and mathematical blocks.
  • Multiple tool workflows: Recipes and guidance for marked.js, pandoc, gomarkdown, Jekyll, and Hugo to support CLI, library, and static-site generator scenarios.
  • Sanitization and templates: Advice for integrating sanitizers and wrapping converted content in full HTML templates for safe browser rendering.
  • Use cases: Single-file previews, batch documentation builds, static site generation, embedding rendered HTML in web templates, and tooling for documentation pipelines.

Quick Start

Ask the skill to convert README.md into sanitized HTML and save the result as README.html.

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 while preserving GitHub Flavored Markdown and CommonMark semantics?

To convert Markdown to HTML while preserving GitHub Flavored Markdown and CommonMark, this Skill processes code fences, tables, task lists, and math blocks. It provides tool-specific workflows ensuring consistent, format-accurate HTML output without manual cleanup.

What's the best way to sanitize Markdown to HTML output for safe browser rendering?

The best way to sanitize Markdown to HTML output for safe browser rendering is to apply the sanitization and templating workflows provided here. These integrate sanitizers and wrap converted content in full HTML templates to prevent unsafe browser execution.

Can I use this Markdown to HTML conversion process for static site generators like Jekyll or Hugo?

Yes, you can use this Markdown to HTML conversion process for static site generators like Jekyll or Hugo. It supports CLI, library, and static-site generator scenarios, offering specific recipes and guidance for batch documentation builds and templating systems.

Does the Markdown to HTML conversion support batch processing for documentation pipelines?

Yes, the Markdown to HTML conversion supports batch processing for documentation pipelines. It allows batch documentation builds for blogs and docs, handling single-file previews and multiple file conversions while applying consistent templates across the output.

How do I convert a README file into a styled HTML page using Node.js CLI?

To convert a README file into a styled HTML page using Node.js CLI, you can use the provided marked.js workflows to transform the Markdown file. The process outputs sanitized, styled HTML wrapped in a full HTML template ready for browser rendering.