A CLI that turns Markdown into WeChat articles — and writes them too
Go-based tool for Chinese devs who want to publish to WeChat Official Accounts without touching the web editor.

What it does
md2wechat is a Go CLI that converts Markdown into WeChat-formatted HTML and pushes it straight to the platform’s draft box. It also bundles AI-assisted writing, “de-AI-ing” (humanizing generated text), cover image generation, and structured layout modules — all behind a single command interface.
The interesting bit
The project treats WeChat’s closed publishing ecosystem as a target platform worthy of its own design system. It introduces :::module syntax — 43 structured layout components like :::hero and :::timeline — that render through 40 platform-tuned themes. The catch: those modules only work in API mode, which requires contacting the author for a key.
Key highlights
- Full pipeline:
write→humanize→generate_cover→convert --draft - Free “AI mode” generates prompts for external LLMs; paid “API mode” returns deterministic HTML in seconds
- JSON envelope output on every command (
--json) for agent/script consumption - Discovery commands (
capabilities,layout list,doctor) designed for Claude Code / Codex / OpenClaw integration - Brew, npm, and Go install options; WeChat AppID/Secret required for publishing
Caveats
- Core value (43 layout modules, 40 themes, deterministic output) is paywalled behind API mode; free tier is essentially a prompt generator with 3 basic themes
- API key acquisition requires scanning a QR code and messaging the author’s WeChat account — no self-service signup visible
- README is Chinese-first; English support unclear
Verdict
Worth a look if you publish to WeChat regularly and want to automate the pipeline. Skip it if you need free, self-hosted tooling or don’t read Chinese — the friction of API mode onboarding may outweigh the convenience.