Register alternate mime type for Markdown files

macOS considers them to be `text/markdown`, which meant that dragging
an .md file ended up with the wrong content type
This commit is contained in:
Jermolene 2017-02-11 12:48:41 +00:00
parent 36c0af0fd4
commit 1961db6732
1 changed files with 1 additions and 0 deletions

View File

@ -1949,6 +1949,7 @@ $tw.boot.startup = function(options) {
$tw.utils.registerFileType("video/mp4","base64",".mp4");
$tw.utils.registerFileType("audio/mp3","base64",".mp3");
$tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]);
$tw.utils.registerFileType("text/markdown","utf8",[".md",".markdown"],{deserializerType:"text/x-markdown"});
$tw.utils.registerFileType("text/x-markdown","utf8",[".md",".markdown"]);
$tw.utils.registerFileType("application/enex+xml","utf8",".enex");
$tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","base64",".xlsx");