We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af42046 commit db60169Copy full SHA for db60169
app/src/protyle/render/plantumlRender.ts
@@ -25,7 +25,7 @@ export const plantumlRender = (element: Element, cdn = Constants.PROTYLE_CDN) =>
25
}
26
const renderElement = e.firstElementChild.nextElementSibling as HTMLElement;
27
try {
28
- renderElement.innerHTML = `<img src=${window.siyuan.config.editor.plantUMLServePath}${window.plantumlEncoder.encode(Lute.UnEscapeHTMLStr(e.getAttribute("data-content")))}">`;
+ renderElement.innerHTML = `<object type="image/svg+xml" data="${window.siyuan.config.editor.plantUMLServePath}${window.plantumlEncoder.encode(Lute.UnEscapeHTMLStr(e.getAttribute("data-content")))}"/>`;
29
renderElement.classList.remove("ft__error");
30
e.setAttribute("data-render", "true");
31
} catch (error) {
0 commit comments