Skip to content
freestylefly avatar

Canghe Markdown To Html

A Markdown-to-HTML converter with inline-styled WeChat-compatible themes, math, diagrams, and alerts.

CCM score
60 of 100
skills.sh installs
543
GitHub stars
477
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Converts Markdown files to styled HTML with three themes: default, grace, and simple
  • Supports code highlighting, math, PlantUML and Mermaid diagrams, footnotes, GitHub-style alerts, and ruby text
  • Writes output beside the input file and backs up any existing HTML with a timestamped .bak suffix
  • Reads optional theme and code-block preferences from EXTEND.md and offers to run formatting first for Chinese content

Install

$ npx -y skills add freestylefly/canghe-skills --skill canghe-markdown-to-html -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Markdown to HTML Converter

Converts Markdown files to beautifully styled HTML with inline CSS, optimized for WeChat Official Account and other platforms.

Script Directory

Agent Execution: Determine this SKILL.md directory as SKILL_DIR, then use ${SKILL_DIR}/scripts/<name>.ts.

ScriptPurpose
scripts/main.tsMain entry point

Preferences (EXTEND.md)

Use Bash to check EXTEND.md existence (priority order):

# Check project-level first
test -f .canghe-skills/canghe-markdown-to-html/EXTEND.md && echo "project"

# Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)
test -f "$HOME/.canghe-skills/canghe-markdown-to-html/EXTEND.md" && echo "user"

Details

Repository
github.com/freestylefly/canghe-skills
Categories
Writing & Content, Technical Documentation, Social Media
First seen
Jun 3, 2026

Questions

What does the canghe-markdown-to-html skill do?

It converts Markdown files into styled HTML with inline CSS, optimized for WeChat Official Account and other platforms. It supports code highlighting, math, PlantUML, footnotes, alerts, and infographics.

How do I install the canghe-markdown-to-html skill?

Run npx -y skills add freestylefly/canghe-skills --skill canghe-markdown-to-html -y in a project. Once installed, the agent can convert a Markdown file to HTML with a theme such as default, grace, or simple.

Which themes does the markdown-to-html skill offer?

It offers three themes: default, a classic layout with centered headings, grace, which adds text shadows and rounded cards, and simple, a modern minimal style. The default theme is used unless you choose another.

Where does the converted HTML file get saved?

The HTML is written to the same directory as the input Markdown file, so article.md becomes article.html. If an HTML file already exists there, it is backed up with a timestamp before being replaced.

More from freestylefly/canghe-skills

All 18

Similar to Canghe Markdown To Html

More Writing & Content