Do markdown conversion only if preview is enabled

This commit is contained in:
Jori Lallo
2016-06-05 13:12:24 -07:00
parent b105a69b3d
commit 02f0bdcef9

View File

@@ -28,10 +28,9 @@ const documentEditState = new class DocumentEditState {
@computed get htmlPreview() { @computed get htmlPreview() {
// Only compute if preview is active // Only compute if preview is active
// if (this.preview) { if (this.preview) {
return convertToMarkdown(this.text);
// } }
return convertToMarkdown(this.text);
} }
/* Actions */ /* Actions */