We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0794300 commit f1c275fCopy full SHA for f1c275f
2 files changed
cjs/util/Svg.js
@@ -143,7 +143,7 @@ const Svg = exports.Svg = {
143
// Add the CSS styles, if requested
144
//
145
if (args.styles) {
146
- SVG = SVG.replace(/<defs>/, `<defs>\n${CSS}`);
+ SVG = SVG.replace(/<defs>/, `<defs>\n<style>${CSS}</style>`);
147
}
148
149
// Return the defs plus the SVG output.
mjs/util/Svg.js
@@ -143,7 +143,7 @@ export const Svg = {
0 commit comments