don't preview if hightlight mode is not markdown

pull/1/head
ansuz 2017-05-24 14:21:31 +02:00
parent fd83ae3e61
commit c5bb830757
1 changed files with 1 additions and 0 deletions

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);