Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

feat(tools): 增加微信公众号文章正文匹配规则

hugohe3beb2ad13a431
diff --git a/tools/web_to_md.cjs b/tools/web_to_md.cjs
index 062d229e..c9c35ea0 100644
--- a/tools/web_to_md.cjs
+++ b/tools/web_to_md.cjs
@@ -139,6 +139,9 @@ function extractMainContent(html) {
// Common content container patterns for Chinese government websites
const contentPatterns = [
+ // WeChat Public Account
+ /<div[^>]*class=["'][^"']*rich_media_content[^"']*["'][^>]*>([\s\S]*?)<\/div>/i,
+ /<div[^>]*id=["']js_content["'][^>]*>([\s\S]*?)<\/div>/i,
// Hunan province gov sites
/<div[^>]*class=["'][^"']*tys-main-zt-show[^"']*["'][^>]?>([\s\S]*?)<\/div>\s*<\/div>\s*<\/div>/i,
/<div[^>]*class=["'][^"']*tys-main-zt-show[^"']*["'][^>]*>([\s\S]*?)<\/div>/i,