Fix language detection in codemirror when importing a markdown file

pull/1/head
yflory 6 years ago
parent a41a31a574
commit ef452d1221

@ -302,6 +302,7 @@ define([
} else {
mode = mime && mime.mode || null;
}
if (mode === "markdown") { mode = "gfm"; }
if (mode && Modes.list.some(function (o) { return o.mode === mode; })) {
exp.setMode(mode);
$toolbarContainer.find('#language-mode').val(mode);

Loading…
Cancel
Save