
Baoyu Markdown To Html
Turn Markdown drafts into inline-CSS HTML with WeChat-friendly themes for newsletters, docs sites, and republished articles.
Overview
Baoyu-markdown-to-html is an agent skill most often used in Grow (also Launch distribution and Build docs) that converts Markdown into themed, inline-CSS HTML with WeChat-oriented features.
Install
npx skills add https://github.com/jimliu/baoyu-skills --skill baoyu-markdown-to-htmlWhat is this skill?
- WeChat Official Account–compatible themed HTML with inline CSS
- Code highlighting, math, PlantUML, footnotes, alerts, and infographic blocks
- Optional bottom citations that convert external links for WeChat compliance
- Version 1.56.1 skill package with bun or npx execution paths
- User-input batching rules for theme and conversion options via agent ask tools
- Requires bun or npx via openclaw metadata
Adoption & trust: 24.3k installs on skills.sh; 20.9k GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
You have Markdown content but need platform-safe, styled HTML—especially for WeChat—with citations and rich blocks without hand-coding CSS.
Who is it for?
Creators publishing tutorials, product updates, or bilingual posts who already write in Markdown and target WeChat or similar rich HTML channels.
Skip if: Teams that only need raw Markdown in Git, static-site generators that already own the pipeline end-to-end, or workflows with no bun/npx and no appetite to run conversion scripts.
When should I use this skill?
User asks for markdown to html, convert md to html, md 转 html, 微信外链转底部引用, or styled HTML from markdown.
What do I get? / Deliverables
You receive a styled HTML file or snippet ready to publish, with optional bottom citations for external links per WeChat norms.
- Styled HTML with inline CSS
- Optional bottom-citation link block for external URLs
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Publishing polished HTML is a recurring growth motion once the product narrative exists, even when source material was written during build. Long-form and tutorial output for audiences maps to grow content—the canonical shelf for markdown-to-HTML publishing workflows.
Where it fits
Convert a weekly product Markdown newsletter into WeChat-safe HTML before scheduling send.
Ship launch announcement MD to styled HTML for multi-channel reposting the same day.
Export internal API guide Markdown to branded HTML for a design partner who does not use your docs repo.
How it compares
Skill-packaged HTML generator with WeChat-specific cite behavior—not a generic static-site build or MCP document server.
Common Questions / FAQ
Who is baoyu-markdown-to-html for?
Solo builders and marketers using agent assistants to repurpose Markdown blogs, docs, and newsletters into channel-ready HTML.
When should I use baoyu-markdown-to-html?
When launching a post to WeChat or similar platforms, growing content libraries from MD sources, or exporting build-phase docs to styled HTML for partners.
Is baoyu-markdown-to-html safe to install?
It may invoke bun or npx and read your Markdown files; check the Security Audits panel on this page and run conversions only on content you own.
Workflow Chain
Then invoke: baoyu cover image
SKILL.md
READMESKILL.md - Baoyu Markdown To Html
# Markdown to HTML Converter Converts Markdown files to beautifully styled HTML with inline CSS, optimized for WeChat Official Account and other platforms. ## User Input Tools When this skill prompts the user, follow this tool-selection rule (priority order): 1. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent. 2. **Fallback**: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question. 3. **Batching**: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order. Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes. ## Script Directory **Agent Execution**: Determine this SKILL.md directory as `{baseDir}`. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. Replace `{baseDir}` and `${BUN_X}` with actual values. | Script | Purpose | |--------|---------| | `scripts/main.ts` | Main entry point | ## Preferences (EXTEND.md) Check EXTEND.md in priority order — the first one found wins: | Priority | Path | Scope | |----------|------|-------| | 1 | `.baoyu-skills/baoyu-markdown-to-html/EXTEND.md` | Project | | 2 | `${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-markdown-to-html/EXTEND.md` | XDG | | 3 | `$HOME/.baoyu-skills/baoyu-markdown-to-html/EXTEND.md` | User home | If none found, use defaults. **EXTEND.md supports**: default theme, custom CSS variables, code block style. ## Workflow ### Step 0: Pre-check (Chinese Content) **Condition**: Only execute if input file contains Chinese text. **Detection**: 1. Read input markdown file 2. Check if content contains CJK characters (Chinese/Japanese/Korean) 3. If no CJK content → skip to Step 1 **Format Suggestion**: If CJK content detected AND `baoyu-format-markdown` skill is available: Use `AskUserQuestion` to ask whether to format first. Formatting can fix: - Bold markers with punctuation inside causing `**` parse failures - CJK/English spacing issues **If user agrees**: Invoke `baoyu-format-markdown` skill to format the file, then use formatted file as input. **If user declines**: Continue with original file. ### Step 1: Determine Theme **Theme resolution order** (first match wins): 1. User explicitly specified theme (CLI `--theme` or conversation) 2. EXTEND.md `default_theme` (this skill's own EXTEND.md, checked in Step 0) 3. `baoyu-post-to-wechat` EXTEND.md `default_theme` (cross-skill fallback) 4. If none found → use AskUserQuestion to confirm **Cross-skill EXTEND.md check** (only if this skill's EXTEND.md has no `default_theme`): Read `$HOME/.baoyu-skills/baoyu-post-to-wechat/EXTEND.md` if it exists and look for a `default_theme:` line. Use the value if present; otherwise fall through. **If theme is resolved from EXTEND.md**: Use it directly, do NOT ask the user. **If no default found**: use `AskUserQuestion` to confirm a theme from the [Themes](#themes) table below. ### Step 1.5: Determine Citation Mode **Default**: Off. Do not ask by default. **Enable only if the user explicitly asks** for "微信外链转底部引用", "底部引用", "文末引用", or passes `--cite`. **Behavior when enabled**: - Ordinary external links are