Do markdown conversion only if preview is enabled
This commit is contained in:
@@ -28,11 +28,10 @@ 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 */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user