diff options
Diffstat (limited to 'Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua')
-rw-r--r-- | Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua b/Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua new file mode 100644 index 00000000000..3b0af2a6999 --- /dev/null +++ b/Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua @@ -0,0 +1,16 @@ +local M = {} + +local filter = require "make4ht-filter" + +-- this extension only works for the ODT format +M.test = function(format) + return format=="odt" +end + +M.modify_build = function(make) + local process = filter {"odttemplate"} + make:match("4oy$", process) + return make +end + +return M |