← Back to Blog
Tutorial

Complete Guide to Markdown Formatting for WeChat: From Writing to One-Click Publishing

WeChat's editor doesn't support Markdown, but you can write in Mark.build and copy rich text with a single click, then paste directly into WeChat — styles fully preserved, code blocks, headings, and blockquotes all render correctly.


Why is WeChat formatting so painful?

WeChat’s native editor is a WYSIWYG rich-text editor with no Markdown support. A typical creator’s workflow looks like: write in Markdown → manually adjust fonts, colors, and spacing in WeChat’s editor → upload images → publish. This process takes 30–60 minutes on average — pure repetitive labor.

WeChat has another hard constraint: no external CSS, no CSS variables, no <script> tags. Pasting HTML that uses class names loses all styling. This is why rich-text copying must inline every style as a style attribute.

How Mark.build solves this

Mark.build’s “Copy Rich Text” feature is purpose-built for WeChat:

  1. Expand CSS variables into concrete color values — at copy time, the browser’s getComputedStyle API resolves all theme variables into actual RGB values and writes them into each element’s style attribute.
  2. Strip tags WeChat filters out<button> elements (code block copy buttons), <script>, <style>, and similar tags are automatically removed.
  3. Normalize image display — all images get display:block; max-width:100% to prevent overflow inside WeChat.

Three steps to publish

Step 1: Write in Mark.build

Open the editor and write your article in Markdown. Use code blocks, blockquotes, tables, and heading levels freely.

Step 2: Pick a theme suited for WeChat

Recommended themes for WeChat:

  • Default — clean and neutral, works for most content
  • 三联 (Sanlian) — warm white background with serif fonts, ideal for humanities articles
  • Magazine — bold serif headings, great for long-form reporting
  • Minimal — ultra-minimalist, ideal for personal opinion pieces

After choosing a theme, confirm light mode in the color mode toggle — WeChat’s reading environment is predominantly light.

Step 3: Copy rich text and paste into WeChat

Click “Export” → “Copy Rich Text” in the top-right corner. The system writes the rendered article (with full inline styles) to your clipboard.

Open the WeChat Official Account backend editor and press Ctrl+V / ⌘+V to paste. Headings, body text, code blocks, and blockquotes all retain their styles.

FAQ

Code blocks look wrong in WeChat?

WeChat’s editor applies special handling to pre tags that may break monospace fonts. Consider screenshotting code blocks and inserting them as images, or use Mark.build’s “Export PNG” feature to generate a code screenshot.

Wrong font after pasting?

WeChat overrides font-family with its own font settings. This is a platform limitation that can’t be worked around. Font weight (bold) and font size usually carry over correctly.

Do images need to be uploaded separately?

Yes. After pasting, if an image src is an external URL, WeChat won’t download it automatically. You’ll need to replace it in WeChat’s editor with an image already uploaded to your WeChat asset library. It’s best to upload images to the asset library first, then use those URLs in your Markdown.

How Mark.build compares to other WeChat Markdown tools

Table
ToolThemesExport HTMLExport PNGCode highlight
Mark.build12150+ languages
Md2WeChatFewLimited
Doocs/mdSeveral

Try it now: Open the editor and write your first WeChat article →