diff --git a/core.js b/core.js index eb7deb4c..97d5a9e3 100644 --- a/core.js +++ b/core.js @@ -59,6 +59,11 @@ function getFileTypeFromMimeType(mimeType) { ext: 'xltx', mime: 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', }; + case 'application/vnd.ms-excel.template.macroEnabled': + return { + ext: 'xltm', + mime: 'application/vnd.ms-excel.template.macroenabled.12', + }; case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': return { ext: 'docx', diff --git a/fixture/fixture.xltm b/fixture/fixture.xltm new file mode 100644 index 00000000..807c4a07 Binary files /dev/null and b/fixture/fixture.xltm differ diff --git a/package.json b/package.json index e4f63a00..a2a6e23c 100644 --- a/package.json +++ b/package.json @@ -222,7 +222,8 @@ "lz4", "potx", "xltx", - "dotx" + "dotx", + "xltm" ], "dependencies": { "@tokenizer/inflate": "^0.2.6", diff --git a/readme.md b/readme.md index a28dc23b..0e357419 100644 --- a/readme.md +++ b/readme.md @@ -564,6 +564,7 @@ abortController.abort(); // Abort file-type reading from the Blob stream. - [`wv`](https://en.wikipedia.org/wiki/WavPack) - WavPack - [`xcf`](https://en.wikipedia.org/wiki/XCF_(file_format)) - eXperimental Computing Facility - [`xlsx`](https://en.wikipedia.org/wiki/Office_Open_XML) - Microsoft Excel document +- [`xltm`](https://en.wikipedia.org/wiki/List_of_Microsoft_Office_filename_extensions) - Microsoft Excel macro-enabled template - [`xltx`](https://en.wikipedia.org/wiki/List_of_Microsoft_Office_filename_extensions) - Microsoft Excel template - [`xm`](https://wiki.openmpt.org/Manual:_Module_formats#The_FastTracker_2_format_.28.xm.29) - Audio module format: FastTracker 2 - [`xml`](https://en.wikipedia.org/wiki/XML) - eXtensible Markup Language diff --git a/supported.js b/supported.js index 1974d3fb..755371d1 100644 --- a/supported.js +++ b/supported.js @@ -159,6 +159,7 @@ export const extensions = [ 'potx', 'xltx', 'dotx', + 'xltm', ]; export const mimeTypes = [ @@ -317,4 +318,5 @@ export const mimeTypes = [ 'application/vnd.openxmlformats-officedocument.presentationml.template', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', + 'application/vnd.ms-excel.template.macroenabled.12', ];