mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
don't preview if hightlight mode is not markdown
This commit is contained in:
parent
fd83ae3e61
commit
c5bb830757
@ -111,6 +111,7 @@ define([
|
||||
};
|
||||
|
||||
var drawPreview = Cryptpad.throttle(function () {
|
||||
if (CodeMirror.highlightMode !== 'markdown') { return; }
|
||||
DiffMd.apply(DiffMd.render(editor.getValue()), $preview);
|
||||
}, 150);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user