diff options
Diffstat (limited to 'support/make4ht/extensions/make4ht-ext-inlinecss.lua')
-rw-r--r-- | support/make4ht/extensions/make4ht-ext-inlinecss.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/support/make4ht/extensions/make4ht-ext-inlinecss.lua b/support/make4ht/extensions/make4ht-ext-inlinecss.lua new file mode 100644 index 0000000000..105c29d3c3 --- /dev/null +++ b/support/make4ht/extensions/make4ht-ext-inlinecss.lua @@ -0,0 +1,16 @@ +local M = {} + +local filter = require "make4ht-domfilter" + +-- filters support only html formats +function M.test(format) + if format:match("html") then return true end + return false +end + +function M.modify_build(make) + local process = filter({"inlinecss"}, "inlinecss") + make:match("html?$", process) + return make +end +return M |