Remplacement de c par text (voir précédemment)
This commit is contained in:
parent
1a54fed064
commit
a8f7d7cdfa
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user