Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 09f361b

Browse files
committed
Remove use of innerHTML
1 parent 947af96 commit 09f361b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "emera",
33
"name": "Emera",
4-
"version": "1.2.1",
4+
"version": "1.2.2",
55
"minAppVersion": "1.6.5",
66
"description": "Enables you to use custom React components and inline JavaScript, kinda like MDX.",
77
"author": "OlegWock",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-emera",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "MDX for Obsidian. Kinda.",
55
"main": "main.js",
66
"scripts": {

src/emera-module/Markdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const Markdown = ({ children, ref, as: Component = 'div', ...props }: { c
99

1010
useEffect(() => {
1111
if (!containerRef.current) return;
12-
containerRef.current.innerHTML = '';
12+
containerRef.current.replaceChildren();
1313
MarkdownRenderer.render(
1414
ctx.plugin.app,
1515
children,

0 commit comments

Comments
 (0)