Description
When using "Copy to WeChat (公众号)" feature, styles are completely lost after pasting to WeChat public account editor (mp.weixin.qq.com).
Steps to reproduce
Open html-anything at http://localhost:3000/
Select a template (e.g., deck-magazine-web or any template)
Enter some content
Click "Export" → "WeChat (公众号)"
See "已复制公众号格式" confirmation
Paste into WeChat public account article editor
All styles are lost - no background colors, no fonts, no layouts
Expected behavior
The copied HTML should retain all styles after pasting to WeChat, as the project description claims: "juice inlines CSS + data-tool markers → paste into editor, styles survive end to end."
Actual behavior
All styles are lost. The WeChat editor only shows plain text with basic formatting.
Root cause analysis
The HTML file generated includes:
<script src="https://cdn.tailwindcss.com"></script>
WeChat's editor:
Blocks/removes <script> tags (including Tailwind CDN)
Does not recognize Tailwind class names (e.g., bg-paper, text-ink)
Removes external resources (fonts, etc.)
The juice library only inlines CSS from <style> tags, but cannot process Tailwind CSS loaded via CDN because:
Tailwind classes are not in the HTML <style> tag
Tailwind is loaded dynamically via external script
juice cannot inline CDN-based CSS
Environment
Browser: Chrome (Mac)
WeChat Editor: mp.weixin.qq.com (web version)
html-anything version: latest
Possible solutions
Local Tailwind installation: Install Tailwind as a build step instead of using CDN
Full CSS inlining: Pre-process HTML to inline all Tailwind classes at build time
WeChat-specific template: Provide templates that don't rely on Tailwind for WeChat export
Documentation: Clarify that WeChat export has limitations with Tailwind-based templates
Description
When using "Copy to WeChat (公众号)" feature, styles are completely lost after pasting to WeChat public account editor (mp.weixin.qq.com).
Steps to reproduce
Open html-anything at http://localhost:3000/
Select a template (e.g., deck-magazine-web or any template)
Enter some content
Click "Export" → "WeChat (公众号)"
See "已复制公众号格式" confirmation
Paste into WeChat public account article editor
All styles are lost - no background colors, no fonts, no layouts
Expected behavior
The copied HTML should retain all styles after pasting to WeChat, as the project description claims: "juice inlines CSS + data-tool markers → paste into editor, styles survive end to end."
Actual behavior
All styles are lost. The WeChat editor only shows plain text with basic formatting.
Root cause analysis
<script src="https://cdn.tailwindcss.com"></script>The HTML file generated includes:
WeChat's editor:
Blocks/removes <script> tags (including Tailwind CDN)
Does not recognize Tailwind class names (e.g., bg-paper, text-ink)
Removes external resources (fonts, etc.)
The juice library only inlines CSS from <style> tags, but cannot process Tailwind CSS loaded via CDN because:
Tailwind classes are not in the HTML <style> tag
Tailwind is loaded dynamically via external script
juice cannot inline CDN-based CSS
Environment
Browser: Chrome (Mac)
WeChat Editor: mp.weixin.qq.com (web version)
html-anything version: latest
Possible solutions
Local Tailwind installation: Install Tailwind as a build step instead of using CDN
Full CSS inlining: Pre-process HTML to inline all Tailwind classes at build time
WeChat-specific template: Provide templates that don't rely on Tailwind for WeChat export
Documentation: Clarify that WeChat export has limitations with Tailwind-based templates