summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua
blob: b3607fa4773585c8b1732d74e98f03341b5b7a8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"}, "odttemplate")
  make:match("4oy$", process)
  return make
end

return M