mirror of
https://github.com/outline/outline.git
synced 2026-11-27 07:58:51 +03:00
Do markdown conversion only if preview is enabled
This commit is contained in:
1 parent
b105a69b3d
commit
02f0bdcef9
1 file changed
+3
-4
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user