summaryrefslogtreecommitdiff
path: root/support/make4ht/extensions/make4ht-ext-inlinecss.lua
blob: 105c29d3c30d6a4e66d8eb941d395516e6fe251e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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