don't preview if hightlight mode is not markdown

This commit is contained in:
ansuz
2017-05-24 14:21:31 +02:00
parent fd83ae3e61
commit c5bb830757

View File

@@ -111,6 +111,7 @@ define([
};
var drawPreview = Cryptpad.throttle(function () {
if (CodeMirror.highlightMode !== 'markdown') { return; }
DiffMd.apply(DiffMd.render(editor.getValue()), $preview);
}, 150);