Skip to content

Commit

Permalink
amd
Browse files Browse the repository at this point in the history
  • Loading branch information
bingryan committed Aug 6, 2024
1 parent 9935fac commit 997c88c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { MarkdownRenderer, MarkdownView } from 'obsidian';
import MarkdownExportPlugin from "./main";

export default async function markdownToHTML(plugin: MarkdownExportPlugin, inputFile: string, inputContent: string) {
// @ts-ignore
let activeView = app.workspace.getActiveViewOfType(MarkdownView);
// @ts-ignore
const leaf = app.workspace.getLeaf(true);
if (!activeView) {
activeView = new MarkdownView(leaf);
Expand Down

0 comments on commit 997c88c

Please sign in to comment.