summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/make4ht/extensions/odttemplate.lua
blob: 3b0af2a6999575b971cfb9c2d7a4e252fc7736c2 (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"}
  make:match("4oy$", process)
  return make
end

return M