mdast2docx logo Md2Docx
Version 0.1.0API DocsFunctions

inlineSvgCssVariables()

Updated 5 min ago

inlineSvgCssVariables(svg, transparent?): string

Defined in: packages/mermaid-node/src/mermaid-node.ts:90

Inlines CSS custom properties and color-mix values in beautiful-mermaid SVG so that librsvg / sharp renders them in full color rather than solid black.

Parameters

svg

string

transparent?

boolean = true

Returns

string

On this page