diff --git a/src/main.ts b/src/main.ts index d6796b5..112c130 100644 --- a/src/main.ts +++ b/src/main.ts @@ -367,8 +367,6 @@ ${editor.getDoc().getSelection()} el.replaceWith(admonitionElement); const view = app.workspace.getActiveViewOfType(MarkdownView); - //hack - //@ts-ignore if (view?.editor?.cm?.state?.field(editorLivePreviewField)) { const editor = view.editor.cm; admonitionElement.onClickEvent((ev) => {