diff --git a/web-to-ppt/capture.js b/web-to-ppt/capture.js index 77043c5..f894ebc 100644 --- a/web-to-ppt/capture.js +++ b/web-to-ppt/capture.js @@ -985,7 +985,7 @@ pushCaptureChild(children, afterNode); // SVG → 序列化为 data URL 图片 - if (element.tagName === "SVG" && !backgroundUrls.length) { + if ((element.tagName === "SVG" || element.tagName === "svg") && !backgroundUrls.length) { try { const svgClone = element.cloneNode(true); // 确保有 xmlns