Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
reply2za committed Aug 17, 2024
1 parent 9d51874 commit 6689a15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ui/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ async function renderCompactMarkdownForInlineFieldLivePreview(
await MarkdownRenderer.render(app, markdown, tmpContainer, sourcePath, component);
let paragraph = tmpContainer.querySelector(":scope > p");
if (tmpContainer.childNodes.length == 1 && paragraph) {
container.appendChild(paragraph.childNodes.item(paragraph.childNodes.length-1));
container.appendChild(paragraph.childNodes.item(paragraph.childNodes.length - 1));
} else {
console.log("B");
container.replaceChildren(...tmpContainer.childNodes);
}

Expand Down

0 comments on commit 6689a15

Please sign in to comment.