Skip to content

Commit

Permalink
fix: provide component for markdown rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Aug 3, 2024
1 parent cd3bbbc commit fd07690
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/ui/settings/PodNotesSettingsTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { episodeCache, savedFeeds } from "src/store/index";
import type { Episode } from "src/types/Episode";
import { get } from "svelte/store";
import { exportOPML, importOPML } from "src/opml";
import { Component } from "obsidian";

export class PodNotesSettingsTab extends PluginSettingTab {
plugin: PodNotes;
Expand Down Expand Up @@ -155,8 +156,7 @@ export class PodNotesSettingsTab extends PluginSettingTab {
demoVal,
timestampFormatDemoEl,
"",
// @ts-ignore - documentation says component is optional, yet not providing one causes an error
null,
new Component(),
);
};

Expand All @@ -182,8 +182,7 @@ export class PodNotesSettingsTab extends PluginSettingTab {
demoVal,
noteCreationFilePathDemoEl,
"",
// @ts-ignore - documentation says component is optional, yet not providing one causes an error
null,
new Component(),
);
});
textComponent.inputEl.style.width = "100%";
Expand Down Expand Up @@ -248,8 +247,7 @@ export class PodNotesSettingsTab extends PluginSettingTab {
`${demoVal}.mp3`,
downloadFilePathDemoEl,
"",
// @ts-ignore - documentation says component is optional, yet not providing one causes an error
null,
new Component(),
);
});
textComponent.inputEl.style.width = "100%";
Expand Down

0 comments on commit fd07690

Please sign in to comment.