mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🚨
This commit is contained in:
parent
c8bb337ede
commit
2a8f8abc8d
11 changed files with 23 additions and 23 deletions
|
|
@ -188,7 +188,7 @@ export const exportImage = (id: string) => {
|
|||
item.innerHTML = symbolElements[symbolElements.length - 1].innerHTML;
|
||||
});
|
||||
previewElement.querySelectorAll(".img img").forEach((item: HTMLImageElement) => {
|
||||
const imgSrc = item.getAttribute("src")
|
||||
const imgSrc = item.getAttribute("src");
|
||||
if (imgSrc.endsWith(".svg")) {
|
||||
fetchGet(item.src, (response: string) => {
|
||||
item.src = `data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(response)))}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue