Remplacement de c par text (voir précédemment)

This commit is contained in:
Bastien Dumont 2022-01-09 22:01:00 +01:00
parent 1a54fed064
commit a8f7d7cdfa
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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)