Skip to content

Commit

Permalink
Remove use of innerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegWock committed Jul 26, 2024
1 parent 947af96 commit 09f361b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "emera",
"name": "Emera",
"version": "1.2.1",
"version": "1.2.2",
"minAppVersion": "1.6.5",
"description": "Enables you to use custom React components and inline JavaScript, kinda like MDX.",
"author": "OlegWock",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-emera",
"version": "1.2.1",
"version": "1.2.2",
"description": "MDX for Obsidian. Kinda.",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/emera-module/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const Markdown = ({ children, ref, as: Component = 'div', ...props }: { c

useEffect(() => {
if (!containerRef.current) return;
containerRef.current.innerHTML = '';
containerRef.current.replaceChildren();
MarkdownRenderer.render(
ctx.plugin.app,
children,
Expand Down

0 comments on commit 09f361b

Please sign in to comment.