pandoc-cl/format-semi-column.lua

9 lines
219 B
Lua
Raw Normal View History

2020-09-18 13:50:44 +00:00
-- 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