pandoc-lua-filters/misc/en-dash-to-hyphen-in-ranges.lua
2024-05-24 00:39:33 +02:00

6 lines
156 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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