add useful lua filters

This commit is contained in:
2020-09-18 15:50:44 +02:00
parent e86c09c1b1
commit e7bb9d8e8a
4 changed files with 92 additions and 0 deletions

8
format-semi-column.lua Normal file
View File

@@ -0,0 +1,8 @@
-- Add a latex insecable space before ";" for words ending with ";"
function Str(elem)
if elem.text:sub(-1) == ";" then
return pandoc.RawInline("latex", elem.text:gsub(";", "~;"))
else
return elem
end
end