From 7e568fbbc6d273a7f6cf4657981273996576793b Mon Sep 17 00:00:00 2001 From: 4Source <38220764+4Source@users.noreply.github.com> Date: Fri, 24 May 2024 22:51:29 +0200 Subject: [PATCH] Fix linting --- src/gui/FlashcardReviewView.tsx | 4 ++-- src/util/RenderMarkdownWrapper.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/FlashcardReviewView.tsx b/src/gui/FlashcardReviewView.tsx index b636524d..5921cae2 100644 --- a/src/gui/FlashcardReviewView.tsx +++ b/src/gui/FlashcardReviewView.tsx @@ -137,8 +137,8 @@ export class FlashcardReviewView { this._currentNote.filePath, ); await wrapper.renderMarkdownWrapper(this._currentCard.front, this.content); - // Set scroll position back to top - this.content.scrollTop = 0; + // Set scroll position back to top + this.content.scrollTop = 0; // Setup response buttons this._resetResponseButtons(); diff --git a/src/util/RenderMarkdownWrapper.ts b/src/util/RenderMarkdownWrapper.ts index e672d644..9e18784e 100644 --- a/src/util/RenderMarkdownWrapper.ts +++ b/src/util/RenderMarkdownWrapper.ts @@ -27,7 +27,7 @@ export class RenderMarkdownWrapper { ): Promise { if (recursiveDepth > 4) return; - MarkdownRenderer.render(this.app, markdownString, containerEl, this.notePath, this.plugin); + MarkdownRenderer.render(this.app, markdownString, containerEl, this.notePath, this.plugin); containerEl.findAll(".internal-embed").forEach((el) => { const link = this.parseLink(el.getAttribute("src"));