Skip to content

Commit

Permalink
🎨 #13801
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jan 14, 2025
1 parent af42046 commit db60169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/protyle/render/plantumlRender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const plantumlRender = (element: Element, cdn = Constants.PROTYLE_CDN) =>
}
const renderElement = e.firstElementChild.nextElementSibling as HTMLElement;
try {
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")))}"/>`;
renderElement.classList.remove("ft__error");
e.setAttribute("data-render", "true");
} catch (error) {
Expand Down

0 comments on commit db60169

Please sign in to comment.