WeChat Setup & Publishing

2026-11-16

WeChat publishing comes from the official "微信公众号发布" plugin: typeset Markdown into an article, then drop it into the WeChat draft box.

Install and enable the plugin from the plugin center first (it requires 大懒猫创作平台 0.4.5 or later) — see Official Plugins.

Step 1: typeset

Click "发布当前文章" (publish this article) in an article to open the typeset-and-publish panel:

  • Several layout themes set fonts, colours and quote styles in one go; code blocks, formulas, Mermaid charts and captions all render;
  • Body images are compressed and uploaded automatically, and the cover can come from the asset library or be cropped on the spot;
  • The typeset result can also be copied into the WeChat editor by hand.

No desktop app? The portal's online tools include a WeChat typesetter that needs no sign-in.

Step 2: configure the account

  1. Sign in to the WeChat MP platform (mp.weixin.qq.com) and copy the AppID from "开发 → 基本设置"; click "生成" for the AppSecret and keep it safe — resetting it invalidates the old value immediately;
  2. Open the plugin's "公众号账号设置" page, fill in AppID and AppSecret, then click "保存配置";
  3. Click "检查微信 IP 白名单": if this machine's egress IP is not on the list, WeChat rejects the API call — add the IP under "开发 → 基本设置 → IP 白名单" and try again;
  4. The AppSecret lives in the system credential store, never in plain text, and never syncs to another device.

Step 3: publish the draft

  1. Back in the article, click "发布当前文章";
  2. Body images and the cover upload to the WeChat asset library and a draft is created;
  3. Preview and mass-send still happen inside the WeChat MP platform.

When the connection fails

The publishing API is WeChat's, so check in this order:

  • IP allowlist: after an egress IP change (new network, router restart) re-add it, then click "检查微信 IP 白名单" in the plugin settings to confirm;
  • AppSecret: check it was not reset or mistyped; "测试连接" verifies it;
  • API permissions: the account must be WeChat-verified, otherwise the draft API is unavailable.

Only want the layout? Copy the typeset result — no account needed.