From ef452d12216fd409144e07a80e3c5a27d29acae0 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 15 Jan 2019 18:20:33 +0100 Subject: [PATCH] Fix language detection in codemirror when importing a markdown file --- www/common/sframe-common-codemirror.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/sframe-common-codemirror.js b/www/common/sframe-common-codemirror.js index 08b46d7cf..8ea515cc9 100644 --- a/www/common/sframe-common-codemirror.js +++ b/www/common/sframe-common-codemirror.js @@ -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);