-
I know there is an option called Separate from that, I would like to be able to use inline svg content to define slide visuals, e.g.: <svg
xmlns="http://www.w3.org/2000/svg"
version="1.1"
width="620.48627"
height="620.48627">
<g
id="g4534"
transform="matrix(3.7795276,0,0,3.7795276,-63.513319,-330.4338)">
<circle
id="circle4528"
style="opacity:1;fill:#008000;fill-opacity:1;stroke:none;stroke-width:7.30687523;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
r="82.085159"
cy="169.51244"
cx="98.889725" />
</g>
</svg> This is rendered as expected if the markdown document is passed through |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
That may be clearly a bug. The transformed HTML has over-contained <p><svg
xmlns="http://www.w3.org/2000/svg"
version="1.1"
width="620.48627"
height="620.48627"><br />
<g
id="g4534"
transform="matrix(3.7795276,0,0,3.7795276,-63.513319,-330.4338)"><br />
<circle id="circle4528"
style="opacity:1;fill:#008000;fill-opacity:1;stroke:none;stroke-width:7.30687523;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
r="82.085159"
cy="169.51244"
cx="98.889725" /><br />
</g><br />
</svg></p> It works if not contained line breaks within SVG: ---
marp: true
---
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="620.48627" height="620.48627"><g id="g4534" transform="matrix(3.7795276,0,0,3.7795276,-63.513319,-330.4338)"><circle id="circle4528" style="opacity:1;fill:#008000;fill-opacity:1;stroke:none;stroke-width:7.30687523;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" r="82.085159" cy="169.51244" cx="98.889725" /></g></svg> |
Beta Was this translation helpful? Give feedback.
-
I didn't have to remove any linebreaks; just wrapping the So maybe a bug, but thanks for the workaround! 🙏 |
Beta Was this translation helpful? Give feedback.
I didn't have to remove any linebreaks; just wrapping the
svg
element with ap
or adiv
yielded the expected output.So maybe a bug, but thanks for the workaround! 🙏