summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/make4ht/extensions/join_colors.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/make4ht/extensions/join_colors.lua')
-rw-r--r--Master/texmf-dist/scripts/make4ht/extensions/join_colors.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/make4ht/extensions/join_colors.lua b/Master/texmf-dist/scripts/make4ht/extensions/join_colors.lua
new file mode 100644
index 00000000000..182661fbdbc
--- /dev/null
+++ b/Master/texmf-dist/scripts/make4ht/extensions/join_colors.lua
@@ -0,0 +1,16 @@
+local M = {}
+
+local filter = require "make4ht-domfilter"
+
+-- filters support only html formats
+function M.test(format)
+ if format == "odt" then return false end
+ return true
+end
+
+function M.modify_build(make)
+ local process = filter {"joincolors"}
+ make:match("html$", process)
+ return make
+end
+return M