summaryrefslogtreecommitdiff
path: root/support/make4ht/filters/make4ht-hruletohr.lua
blob: a9c0c5e9df253bc18df9fa186bc8bdffd4a75841 (plain)
1
2
3
4
5
6
7
8
9
10
11
-- hruletohr
-- \hrule primitive is impossible to redefine catching all possible arguments
-- with tex4ht, it is converted as series of underscores 
-- it seems that these underscores are always part of previous paragraph
-- this assumption may be wrong, needs more real world testing

local hruletohr = function(s)
	return s:gsub("___+(.-)</p>","%1</p>\n<hr class=\"hrule\" />")
end

return hruletohr