Skip to content

Commit db60169

Browse files
committed
🎨 #13801
1 parent af42046 commit db60169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/protyle/render/plantumlRender.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const plantumlRender = (element: Element, cdn = Constants.PROTYLE_CDN) =>
2525
}
2626
const renderElement = e.firstElementChild.nextElementSibling as HTMLElement;
2727
try {
28-
renderElement.innerHTML = `<img src=${window.siyuan.config.editor.plantUMLServePath}${window.plantumlEncoder.encode(Lute.UnEscapeHTMLStr(e.getAttribute("data-content")))}">`;
28+
renderElement.innerHTML = `<object type="image/svg+xml" data="${window.siyuan.config.editor.plantUMLServePath}${window.plantumlEncoder.encode(Lute.UnEscapeHTMLStr(e.getAttribute("data-content")))}"/>`;
2929
renderElement.classList.remove("ft__error");
3030
e.setAttribute("data-render", "true");
3131
} catch (error) {

0 commit comments

Comments
 (0)