summaryrefslogtreecommitdiff
path: root/support/make4ht/extensions/make4ht-ext-mathjaxnode.lua
blob: b9a44491bad055901cd93dfde8cf39928a35bede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local M = {}


local filter = require "make4ht-filter"
function M.test(format)
  if format == "odt" then return false end
  return true
end

function M.prepare_parameters(params)
  params.tex4ht_sty_par = params.tex4ht_sty_par  .. ",mathml"
  return params

end
function M.modify_build(make)
  local mathjax = filter { "mathjaxnode"}
  -- this extension needs mathml enabled
  make:match("html?$",mathjax)
  return make
end

return M