Merge pull request #1833 from Telogen/fix/mermaid-escape-body-tag

fix(mermaid): escape closing body/html tags in inline script template
This commit is contained in:
Jerry Wong authored and GitHub committed 2026-11-30 12:37:35 +08:00 Unverified
commit 11ad5d8e2a
1 file changed
+1 -1
+1 -1
View File
@@ -66,7 +66,7 @@ script.
html, body { width: 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; background: ${bg}; }
svg { max-width: 100%; max-height: 100%; height: auto; width: auto; }
</style>
</head><body>${svgSource}</body></html>`
</head><body>${svgSource}<\/body><\/html>`
const blob = new Blob([htmlSource], { type: 'text/html;charset=utf-8' })
const url = URL.createObjectURL(blob)
window.open(url, '_blank', 'noopener')