WeChat Article Format

Turn Markdown into 公众号 editor HTML that keeps its layout when pasted.

v0.1.1

View example draft · How to use

Example draft

Formatting an autumn air-fryer recipe

A Chinese Markdown article with three sections, a list, a quote, a table and one external link.

The answer

One HTML block you can copy and paste. It has no class names and no style sheet: all 38 styled elements carry their styles inline, which is what the WeChat editor keeps.

What changed

The external link, which WeChat would strip, became a numbered note under 参考链接 (references) at the end. The headings, list, quote, code and table all rendered as intended in a 452-pixel phone-width screenshot.

One fix during the run

The first version labelled the reference list in English. It now uses Chinese labels for Chinese articles.

From a real run on 2026-11-05. Pasting into the live WeChat editor was not tested.

What you get

  • HTML with inline styles only, no classes or scripts
  • Three themes: mint, ink and amber
  • Clickable WeChat links; other links listed as 参考链接

Good fit

  • Publishing Markdown drafts on 公众号
  • Keeping a consistent layout across articles

Not for

  • Uploading images or publishing drafts
  • Nested lists, footnotes or embedded HTML

How to use

An Agent that can read the complete Skill folder, and Node.js 18+. It runs locally and needs no SandBase connection or WeChat login.

Download and unpack the complete Skill folder, keep its references, and use it with a local Agent that supports Skills.

Download Skill v0.1.1

Ask your Agent

Use wechat-article-format to turn this Markdown article into 公众号 HTML with the mint theme, and tell me about any images I need to upload in the editor.
  1. Write in Markdown

    Headings, lists, quotes, code, tables, links and images are supported.

  2. Format locally

    Run the bundled script with a theme to get the preview page.

  3. Copy and paste

    Press the copy button and paste into the 公众号 editor; upload any local images there.

FAQ

How do I use this Skill?

Download and unpack the whole Skill folder, including references, into your Agent’s supported Skill directory. You can also ask the Agent to read its SKILL.md and follow the instructions. Run it locally with your own material.

Why are some links turned into references?

The WeChat editor keeps only mp.weixin.qq.com links clickable, so other links are listed at the end instead.