md-to-wechat

Convert Markdown articles into WeChat-compatible HTML with inline styles.

Updated Feb 9, 2026
One-click install
npx skills add https://github.com/zhenxuanshi-ship-it/meatpiegua_skills --skill md-to-wechat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: md-to-wechat
Source: https://github.com/zhenxuanshi-ship-it/meatpiegua_skills/tree/main/md-to-wechat
Command: npx skills add https://github.com/zhenxuanshi-ship-it/meatpiegua_skills --skill md-to-wechat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markdown, pygments, beautifulsoup4, and includes scripts (resource) components.

What problem does it solve?

This tool eliminates the tedious work of manually recreating Markdown content for WeChat, ensuring correct formatting and ready-to-paste HTML for 公众号编辑器.

Core Features & Use Cases

  • Markdown to WeChat-ready HTML with inline CSS for direct pasting into the editor
  • Single-file and batch conversion with theme support (blue/green/dark/warm)
  • Optional WeChat publishing workflow (draft and publish) via dedicated scripts
  • Keeps code blocks, tables, images, and other Markdown elements properly rendered in WeChat

Quick Start

Convert a Markdown file to WeChat-ready HTML by running the convert.py script on your article.

Frequently Asked Questions about md-to-wechat

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

FAQPage Schema
How do I convert Markdown to WeChat-compatible HTML?

To convert Markdown to WeChat-compatible HTML, this Skill parses Markdown files and applies inline CSS styles, generating ready-to-paste HTML for the WeChat Official Account editor. It uses Python packages like markdown and beautifulsoup4 to ensure proper formatting.

Can I batch process a directory of Markdown articles for WeChat publishing?

Yes, you can batch process Markdown articles for WeChat publishing. The Skill supports directory-wide conversions alongside single-file processing, applying your chosen theme to generate WeChat-ready HTML with inline styles for every file.

What's the best way to keep code blocks and tables formatted when posting Markdown to WeChat?

To keep code blocks and tables formatted for WeChat, this Skill uses the pygments package to highlight code and beautifulsoup4 to apply inline CSS. This ensures Markdown elements like tables, images, and code blocks render correctly in the WeChat editor.

Does the WeChat publishing workflow support direct API publishing?

Yes, the WeChat publishing workflow supports direct API publishing. The Skill includes dedicated scripts that allow you to create drafts and publish your WeChat-ready HTML directly to your Official Account after conversion.

What WeChat editor styling themes are available for Markdown conversion?

The available WeChat editor styling themes for Markdown conversion are blue, green, dark, and warm. These themes apply inline CSS to your articles during the Markdown to HTML conversion process.

Do I need Python packages installed to convert Markdown for WeChat?

Yes, you need the Python packages markdown, pygments, and beautifulsoup4 installed. These dependencies are required to parse the Markdown content, highlight code blocks, and apply inline styling for WeChat-ready HTML output.