Skip to content

Commit f578bd3

Browse files
authored
Update plantumlRender.ts (#1579)
1 parent 707ebad commit f578bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ts/markdown/plantumlRender.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const plantumlRender = (element: (HTMLElement | Document) = document, cdn
2222
return;
2323
}
2424
try {
25-
e.innerHTML = `<img src="http://www.plantuml.com/plantuml/svg/~1${plantumlEncoder.encode(text)}">`;
25+
e.innerHTML = `<object type="image/svg+xml" data="http://www.plantuml.com/plantuml/svg/~1${plantumlEncoder.encode(text)}"/>`;
2626
} catch (error) {
2727
e.className = "vditor-reset--error";
2828
e.innerHTML = `plantuml render error: <br>${error}`;

0 commit comments

Comments
 (0)