From f03b02a481831d65b07bf5c9c32ac7ed88d305a8 Mon Sep 17 00:00:00 2001 From: bimlas Date: Tue, 11 Sep 2018 09:44:44 +0200 Subject: [PATCH] Add `text/asciidoc` MIME type This type is not registered yet officially (https://github.com/asciidoctor/asciidoctor/issues/2502), but used by "Asciidoctor for TiddlyWiki" plugin (https://bimlas.gitlab.io/tw5-asciidoctor/) --- boot/boot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/boot/boot.js b/boot/boot.js index e5b608cae..a184045d7 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1998,6 +1998,7 @@ $tw.boot.startup = function(options) { $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("text/asciidoc","utf8",[".ad",".adoc",".asciidoc"]); $tw.utils.registerFileType("application/enex+xml","utf8",".enex"); $tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.wordprocessingml.document","base64",".docx"); $tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","base64",".xlsx");