mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-12-02 12:45:09 +08:00
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:
1 file changed
+1
-1
+1
-1
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user