Skip to content

Fix/antv wechat svg paints - #1992

Closed
M4TRIX04 wants to merge 2 commits into
doocs:mainfrom
M4TRIX04:fix/antv-wechat-svg-paints
Closed

M4TRIX04 wants to merge 2 commits into
doocs:mainfrom
M4TRIX04:fix/antv-wechat-svg-paints

Conversation

@M4TRIX04

@M4TRIX04 M4TRIX04 commented Oct 12, 2026 •

Copy link
Copy Markdown

Summary

Fix AntV Infographic SVG graphics appearing with incorrect or black fills when copied from the Markdown editor into the WeChat Official Account editor.

Some AntV graphics use embedded SVG paint resources that are not preserved correctly during clipboard export. This change resolves those paint references and removes transparent overlays where necessary, improving compatibility with WeChat's SVG rendering.

Changes

  • Resolve embedded SVG paint references during WeChat clipboard sanitization.
  • Preserve the intended colors of AntV Infographic graphics.
  • Handle transparent overlays that may interfere with the exported result.
  • Add regression tests for the affected SVG structures.

Related Issues

No existing issue linked yet.

Test Procedure

  • Changes cherry-picked cleanly onto the latest upstream main.
  • git diff --check
  • Automated unit tests (pending CI)
  • Lint (pending CI)
  • Original implementation verified by copying affected AntV Infographic graphics into the WeChat Official Account editor.

Notes

This PR is intentionally limited to AntV SVG clipboard compatibility. It does not include Docker configuration or unrelated Mermaid changes.

@github-actions

Copy link
Copy Markdown

🚀 Surge Preview has been successfully deployed!

Preview URL: https://doocs-md-preview-pr-1992.surge.sh

Built with commit afcb4d5

@M4TRIX04
M4TRIX04 marked this pull request as ready for review October 12, 2026 07:07
@M4TRIX04 M4TRIX04 closed this Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant