mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
af42046c91
commit
db60169f1d
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ export const plantumlRender = (element: Element, cdn = Constants.PROTYLE_CDN) =>
|
||||||
}
|
}
|
||||||
const renderElement = e.firstElementChild.nextElementSibling as HTMLElement;
|
const renderElement = e.firstElementChild.nextElementSibling as HTMLElement;
|
||||||
try {
|
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");
|
renderElement.classList.remove("ft__error");
|
||||||
e.setAttribute("data-render", "true");
|
e.setAttribute("data-render", "true");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue