From 02f0bdcef92b1828632a8991ed082b87e92da1cb Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sun, 5 Jun 2016 13:12:24 -0700 Subject: [PATCH] Do markdown conversion only if preview is enabled --- src/scenes/DocumentEdit/DocumentEditState.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/scenes/DocumentEdit/DocumentEditState.js b/src/scenes/DocumentEdit/DocumentEditState.js index 1b3b59f7b..96f93cbae 100644 --- a/src/scenes/DocumentEdit/DocumentEditState.js +++ b/src/scenes/DocumentEdit/DocumentEditState.js @@ -28,10 +28,9 @@ const documentEditState = new class DocumentEditState { @computed get htmlPreview() { // Only compute if preview is active - // if (this.preview) { - - // } - return convertToMarkdown(this.text); + if (this.preview) { + return convertToMarkdown(this.text); + } } /* Actions */