wechat-article-formatter

Convert Markdown articles into WeChat-ready HTML with inline styles.

66|14|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/solar-luna/Fully-automatic-article-generation-skill --skill wechat-article-formatter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wechat-article-formatter
Source: https://github.com/solar-luna/Fully-automatic-article-generation-skill/tree/main/skills/wechat-article-formatter
Command: npx skills add https://github.com/solar-luna/Fully-automatic-article-generation-skill --skill wechat-article-formatter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markdown, beautifulsoup4, cssutils, and includes scripts (resource) components.

What problem does it solve?

本技能解决将 Markdown 文章转换为可直接在微信公众号中发布的美化 HTML 的繁琐工作,确保排版专业且风格统一。

Core Features & Use Cases

  • 自动将 Markdown 转换为微信公众号可兼容的 HTML 并内联样式,方便直接粘贴到编辑器发布。
  • 支持多主题与风格,包含技术风、简约风和商务风,适配不同内容场景。
  • 提供单文件转换、批量转换与实时预览等工作流,提升内容生产效率。
  • 适用于个人创作者、内容团队和自媒体运营,减少格式化耗时。

Quick Start

  • 安装依赖:pip install -r requirements.txt
  • 转换一个 Markdown 文件并在浏览器预览: python scripts/markdown_to_html.py --input article.md --preview
  • 将输出粘贴到微信公众号编辑器中,并进行必要的图片与样式微调。

Frequently Asked Questions about wechat-article-formatter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Markdown to WeChat-compatible HTML with inline styles?

You can convert Markdown to WeChat HTML by running the Python script with your input file. It processes the Markdown and outputs HTML with inline styles applied, which you can preview in a browser and then paste directly into the WeChat editor.

Does the WeChat HTML converter support batch processing for multiple articles?

Yes, the Markdown to WeChat HTML converter supports batch processing for multiple articles. It also offers single-file conversion and live preview workflows to streamline content production for teams and individual creators.

Can I use different themes for WeChat article formatting from Markdown?

Yes, you can apply different themes when formatting WeChat articles from Markdown. The converter supports technical, minimalist, and business styles, allowing you to adapt the HTML output to various content scenarios and audience preferences.

What Python dependencies do I need to format Markdown for WeChat?

To format Markdown for WeChat, you need the markdown, beautifulsoup4, and cssutils Python libraries installed. These dependencies handle Markdown parsing, HTML structure manipulation, and CSS inline style application required for WeChat compatibility.

Why does my Markdown article lose formatting when pasted into the WeChat editor?

Markdown articles lose formatting in the WeChat editor because the platform strips external CSS classes. This tool resolves the issue by converting Markdown into HTML with inline styles, embedding the formatting directly within the tags so it is preserved upon pasting.

Does the Markdown to WeChat HTML tool support code highlighting?

Yes, the Markdown to WeChat HTML converter supports code highlighting as part of its feature set. It transforms code blocks in your Markdown into styled HTML with inline styles, ensuring syntax highlighting is maintained when published on WeChat.