diff --git a/simple-mind-map/src/plugins/Export.js b/simple-mind-map/src/plugins/Export.js
index 52413970..54a460af 100644
--- a/simple-mind-map/src/plugins/Export.js
+++ b/simple-mind-map/src/plugins/Export.js
@@ -93,7 +93,15 @@ class Export {
if (this.mindMap.richText) {
const foreignObjectList = svg.find('foreignObject')
if (foreignObjectList.length > 0) {
- foreignObjectList[0].add(SVG(``))
+ foreignObjectList[0].add(
+ SVG(``),
+ SVG(
+ ''
+ )
+ )
+ for (const v of document.getElementsByTagName('style')) {
+ foreignObjectList[0].add(SVG(v.outerHTML))
+ }
svgIsChange = true
}
// 如果还开启了数学公式,还要插入katex库的样式