jackiechan2439 downloadsFormat Markdown for WeChat Official Accounts with styled previews and image-rich clipboard export.
Format an Obsidian note for WeChat Official Accounts and paste the styled text with its images.
Choose one of six ready-made layouts. Each preset styles headings, paragraphs, images, quotes, lists, tables, and code as a whole. Preview the article on a phone or iPad, then copy the body into the WeChat editor.
| Preset | Layout | Best for |
|---|---|---|
| 清爽阅读 · Clean Reading | Teal heading rules, light quotes, and generous paragraph spacing | Essays and everyday posts |
| 黑白杂志 · Monochrome Magazine | Centered serif headings, prominent chapter numbers, and black rules | Long reads and feature articles |
| 知识卡片 · Knowledge Cards | Blue headings and white cards that group each chapter with its content | Tutorials and reference guides |
| 苹果极简 · Apple Minimal | Black and gray type, generous spacing, and soft gray blocks | Product introductions and visual stories |
| 技术文档 · Technical Docs | Dark chapter headers, compact steps, and dark code blocks | How-to guides and engineering notes |
| 红黑简报 · Red and Black Brief | Red chapter numbers and rules with a compact text layout | Briefings and summaries |
导出完整 HTML (Export complete HTML) to save a standalone file with its images.Phone · Knowledge Cards
iPad · Apple Minimal
Requires Obsidian 1.15.0 or later on desktop.
main.js, manifest.json, and styles.css into <vault>/.obsidian/plugins/wechat-layout/ and enable the plugin. For a manual upgrade, replace the three files and keep data.json. Latest GitHub releaseTo format an excerpt, select text in the Markdown editor and run 排版当前选区 (Format current selection) while the editor has focus.
The formatter supports Markdown headings, nested lists, task lists, tables, code, images, and footnotes, plus Obsidian wikilink aliases, highlights, and static callouts. It preserves Mermaid, Dataview, and math as source text. Embedded notes, blocks, PDFs, audio, video, and Canvas files require conversion to text or images before publishing.
Formatting, vault image processing, and HTML export run locally. Remote images are fetched from their original hosts. Clipboard access is limited to writing the current article's HTML and plain text when you choose Copy body or run the copy command.
npm ci
npm test
npm run build
Release tags trigger GitHub Actions to test, build, and attest the three plugin files.
Copyright (c) 2026 赵同学AI. Licensed under MIT. See Third-Party Notices for bundled dependencies.