Skip to content

Commit

Permalink
fix: data URI scheme for svg output (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
genert authored Jan 14, 2023
1 parent 5b22959 commit 1da1fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mdxast-mermaid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const outputSVG: OutputFunc = async (node: CodeMermaid, index: number | null, pa
jsxElement.openingElement.attributes.push({
type: 'JSXAttribute',
name: { type: 'JSXIdentifier', name: 'href' },
value: { type: 'Literal', value: `data:text/css;base64.${encoded}` }
value: { type: 'Literal', value: `data:text/css;base64,${encoded}` }
},
{
type: 'JSXAttribute',
Expand Down

0 comments on commit 1da1fee

Please sign in to comment.