Skip to content

Commit

Permalink
fix: Remove deprecated API call
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Mar 30, 2024
1 parent cea0927 commit c102c9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/calendar/event-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit c102c9f

Please sign in to comment.