Remplacement de c par text (voir précédemment)
This commit is contained in:
		| @ -20,7 +20,7 @@ | |||||||
|  |  | ||||||
|  |  | ||||||
| function Str (s) | function Str (s) | ||||||
|    if string.match(s.c, '[0-9mdclxvi]+–[0-9mdclxvi]+') then |    if string.match(s.text, '[0-9mdclxvi]+–[0-9mdclxvi]+') then | ||||||
|       return pandoc.Str(string.gsub(s.c, '–', '-')) |       return pandoc.Str(string.gsub(s.text, '–', '-')) | ||||||
|    end |    end | ||||||
| end | end | ||||||
|  | |||||||
| @ -36,10 +36,10 @@ local function isPatrologiaReference(first, second, third, last) | |||||||
|          ) |          ) | ||||||
|       ) |       ) | ||||||
|       and (second.t == 'Str' |       and (second.t == 'Str' | ||||||
|            and string.match(second.c, '^ [0-9]+,$') |            and string.match(second.text, '^ [0-9]+,$') | ||||||
|            and third.t == 'Space' |            and third.t == 'Space' | ||||||
|            and last.t == 'Str' |            and last.t == 'Str' | ||||||
|            and string.match(last.c, '^col. $')) |            and string.match(last.text, '^col. $')) | ||||||
| end | end | ||||||
|  |  | ||||||
| function Inlines (inlines) | function Inlines (inlines) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user