Closed ouuan closed 7 months ago
Add a new option -I, --svgId [svgId] to set the id attribute of the <svg> element to be rendered.
-I, --svgId [svgId]
<svg>
This is useful when the output is used as a part of HTML, because Mermaid CSS pollutes the global CSS with the id.
svgId || 'my-svg' to use the old id as default. || instead of ?? to avoid empty id and for better compatibility.
svgId || 'my-svg'
||
??
Make sure you
master
@aloisklink you are welcome to merge it!
:bookmark_tabs: Summary
Add a new option
-I, --svgId [svgId]
to set the id attribute of the<svg>
element to be rendered.This is useful when the output is used as a part of HTML, because Mermaid CSS pollutes the global CSS with the id.
:straight_ruler: Design Decisions
svgId || 'my-svg'
to use the old id as default.||
instead of??
to avoid empty id and for better compatibility.:clipboard: Tasks
Make sure you
master
branch