csl-clio/Filtres-Pandoc/en-dash-to-hyphen-in-ranges.lua~

6 lines
144 B
Lua
Raw Normal View History

2021-04-15 22:02:49 +01:00
function Str (s)
if string.match(s.c, '[0-9mdclxvi]+[0-9mdclxvi]+') then
return pandoc.Str(string.gsub(s.c, '', '-'))
end
end