Skip to content

Commit

Permalink
Merge pull request #867 from mermaid-js/fix/796
Browse files Browse the repository at this point in the history
fix #796: Export SVG fix
  • Loading branch information
sidharthv96 committed Jun 28, 2022
2 parents ac7cfbd + dd17fd7 commit ddc1291
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
}
]
}
1 change: 1 addition & 0 deletions src/lib/components/actions.svelte
Expand Up @@ -57,6 +57,7 @@
const svgEl: HTMLElement = document
.querySelector('#container svg')
.cloneNode(true) as HTMLElement;
svgEl.setAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink');
const fontAwesomeCdnUrl = Array.from(document.head.getElementsByTagName('link'))
.map((l) => l.href)
.find((h) => h && h.includes('font-awesome'));
Expand Down

0 comments on commit ddc1291

Please sign in to comment.