diff options
Diffstat (limited to 'Master/texmf-dist/scripts/make4ht/filters/make4ht-hruletohr.lua')
-rw-r--r-- | Master/texmf-dist/scripts/make4ht/filters/make4ht-hruletohr.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/make4ht/filters/make4ht-hruletohr.lua b/Master/texmf-dist/scripts/make4ht/filters/make4ht-hruletohr.lua new file mode 100644 index 00000000000..a9c0c5e9df2 --- /dev/null +++ b/Master/texmf-dist/scripts/make4ht/filters/make4ht-hruletohr.lua @@ -0,0 +1,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 |