From 1961db67326344d49de967b41c7e2de457027ad5 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 11 Feb 2017 12:48:41 +0000 Subject: [PATCH] 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 --- boot/boot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/boot/boot.js b/boot/boot.js index f54b7dda4..a03022cf7 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -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");