pandoc-lua-filters/misc/en-dash-to-hyphen-in-ranges.lua

6 lines
156 B
Lua
Raw Normal View History

function Str (s)
if string.match(s.text, '[0-9mdclxviA-C]+[0-9mdclxviB-D]+') then
return pandoc.Str(string.gsub(s.text, '', '-'))
end
end