From c102c9fd189a7b1fae095134976779f10444f106 Mon Sep 17 00:00:00 2001 From: Jeremy Valentine <38669521+valentine195@users.noreply.github.com> Date: Fri, 29 Mar 2024 20:03:35 -0400 Subject: [PATCH] fix: Remove deprecated API call --- src/calendar/event-modal.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calendar/event-modal.ts b/src/calendar/event-modal.ts index 5d1d439..bc3f5dd 100644 --- a/src/calendar/event-modal.ts +++ b/src/calendar/event-modal.ts @@ -12,11 +12,12 @@ export class ViewEventModal extends CalendariumModal { this.contentEl.empty(); this.contentEl.createEl("h4", { text: this.event.name }); - await MarkdownRenderer.renderMarkdown( + await MarkdownRenderer.render( + this.app, this.event.description ?? "", this.contentEl, this.event.note ?? "", - new Component() + this.plugin ); } async onOpen() {