diff --git a/Filtres-Pandoc/en-dash-to-hyphen-in-ranges.lua b/Filtres-Pandoc/en-dash-to-hyphen-in-ranges.lua index 41511d1..d01ee11 100644 --- a/Filtres-Pandoc/en-dash-to-hyphen-in-ranges.lua +++ b/Filtres-Pandoc/en-dash-to-hyphen-in-ranges.lua @@ -20,7 +20,7 @@ function Str (s) - if string.match(s.c, '[0-9mdclxvi]+–[0-9mdclxvi]+') then - return pandoc.Str(string.gsub(s.c, '–', '-')) + if string.match(s.text, '[0-9mdclxvi]+–[0-9mdclxvi]+') then + return pandoc.Str(string.gsub(s.text, '–', '-')) end end diff --git a/Filtres-Pandoc/suppress-column-label-patrologia.lua b/Filtres-Pandoc/suppress-column-label-patrologia.lua index 2bc83f4..7db7086 100644 --- a/Filtres-Pandoc/suppress-column-label-patrologia.lua +++ b/Filtres-Pandoc/suppress-column-label-patrologia.lua @@ -36,10 +36,10 @@ local function isPatrologiaReference(first, second, third, last) ) ) and (second.t == 'Str' - and string.match(second.c, '^ [0-9]+,$') + and string.match(second.text, '^ [0-9]+,$') and third.t == 'Space' and last.t == 'Str' - and string.match(last.c, '^col. $')) + and string.match(last.text, '^col. $')) end function Inlines (inlines)