Loading...
Loading...
Convert Markdown articles to WeChat Official Account publishing format with beautifully styled inline HTML. Use this tool when users want to publish Markdown content to WeChat, convert articles for WeChat Official Account, or mention terms like WeChat Official Account, official account typesetting, or official account publishing.
npx skill4agent add zhenxuanshi-ship-it/meatpiegua_skills md-to-wechat# Format conversion dependencies
pip install markdown pygments beautifulsoup4
# One-click publishing dependencies (optional, required only for publishing)
pip install requests
# Better default cover image (optional)
pip install Pillowpython ~/.cursor/skills/md-to-wechat/scripts/convert.py input.md| Parameter | Description | Default Value |
|---|---|---|
| Path of the input Markdown file | Required |
| Path of the output HTML file | |
| Theme style: | |
| Batch conversion: specify directory path | - |
# Convert all .md files in the directory
python ~/.cursor/skills/md-to-wechat/scripts/convert.py --dir ./articles
# Batch conversion with specified theme
python ~/.cursor/skills/md-to-wechat/scripts/convert.py --dir ./articles --theme green# First use: configure AppID and AppSecret
python ~/.cursor/skills/md-to-wechat/scripts/publish.py --setup# Create draft (recommended, check and publish manually in official account backend)
python ~/.cursor/skills/md-to-wechat/scripts/publish.py input.md
# Create draft and publish directly
python ~/.cursor/skills/md-to-wechat/scripts/publish.py input.md --publish
# Specify title, author and cover image
python ~/.cursor/skills/md-to-wechat/scripts/publish.py input.md --title "Article Title" --author "Author" --thumb cover.jpg# Batch create drafts
python ~/.cursor/skills/md-to-wechat/scripts/publish.py --dir ./articles
# Batch create drafts and publish
python ~/.cursor/skills/md-to-wechat/scripts/publish.py --dir ./articles --publish
# Batch operation with custom interval (default 60s)
python ~/.cursor/skills/md-to-wechat/scripts/publish.py --dir ./articles --delay 30| Parameter | Description | Default Value |
|---|---|---|
| Configure AppID/AppSecret | - |
| Publish directly after creating draft | No (only create draft) |
| Article title | Automatically extracted from h1 |
| Article author | Empty |
| Cover image path (recommended 900x500+) | Automatically generate default cover |
| Article theme style | |
| Batch operation: specify directory path | - |
| Interval between operations per article (to prevent rate limiting) | |
Ctrl+V--setup--setup--publish