From 47054ea6c1e70e09d56cd296a3fed804ffa88f7f Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Sun, 5 May 2024 10:55:00 -0700 Subject: [PATCH] Remove the loading indicator when there's a rendering error --- packages/markdown-preview/lib/markdown-preview-view.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/markdown-preview/lib/markdown-preview-view.js b/packages/markdown-preview/lib/markdown-preview-view.js index 78a222efcd..52586c1068 100644 --- a/packages/markdown-preview/lib/markdown-preview-view.js +++ b/packages/markdown-preview/lib/markdown-preview-view.js @@ -448,6 +448,7 @@ module.exports = class MarkdownPreviewView { showError(result) { this.element.textContent = '' + this.element.classList.remove('loading') const h2 = document.createElement('h2') h2.textContent = 'Previewing Markdown Failed' this.element.appendChild(h2)