freestylefly avatar

Canghe Markdown To Html

Converts markdown to HTML with inline CSS styling, originally built for WeChat Official Account publishing but works anywhere you need self-contained HTML. Ships with three themes (default, grace, simple) and handles the usual suspects: code highlighting, tables, footnotes, alerts, even mermaid and PlantUML diagrams. The workflow is smart about Chinese content, offering to auto-format CJK text first to fix spacing and bold marker issues before conversion. Outputs to the same directory as your source file with automatic backup if a file exists. Supports EXTEND.md for custom CSS variables if you want to tweak colors without forking. The keep-title flag is a nice touch for when you don't want it stripping your first heading.

skills.sh installs
536
GitHub stars
474
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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"

Sponsors

Details

Repository
github.com/freestylefly/canghe-skills
Category
Frontend Development
First seen
Jun 3, 2026

More from freestylefly/canghe-skills

All 29
1dylantarre avatarresponsive-adaptivedylantarre/animation-principlesUse when building context-dependent animations - duration that changes based on device, distance, user preference, or interaction context534skills.sh installs
2plugin87 avatarmigrate-design-systemplugin87/ux-ui-agent-skillsMap this token system to or from any external design system (Material Design 3, Apple HIG, Fluent, Carbon, Ant, shadcn/ui, Radix, Chakra, Mantine, Bootstrap…) —531skills.sh installs
3plugin87 avatartoken-buildplugin87/ux-ui-agent-skillsSet up or run the token build pipeline — transform the DTCG tokens/*.json (source of truth) into platform artifacts (CSS variables, Tailwind @theme, JS/TS, iOS 522skills.sh installs
4lovropodobnik avatarui-refactorlovropodobnik/refactoring-ui-skillui refactor519skills.sh installs
5sickn33 avatarangular-best-practicessickn33/antigravity-awesome-skillsangular best practices510skills.sh installs
6parcadei avatarhooksparcadei/continuous-claude-v3Hook Development Rules509skills.sh installs