Skip to content

Commit 38198e3

Browse files
committed
fix: fixes some live preview errors
1 parent af42f0d commit 38198e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/live-preview.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ function selectionAndRangeOverlap(
123123

124124
function inlineRender(view: EditorView) {
125125
// still doesn't work as expected for tables and callouts
126-
126+
if (!view.state.field(editorLivePreviewField)) {
127+
this.decorations = Decoration.none;
128+
return;
129+
}
127130
const currentFile = app.workspace.getActiveFile();
128131
if (!currentFile) return;
129132

0 commit comments

Comments
 (0)