Adaptation au changement récent dans la gestion des id pour LaTeX

This commit is contained in:
Bastien Dumont 2024-05-24 23:54:13 +02:00
parent ebf03f204f
commit 17627834d6

View File

@ -67,7 +67,11 @@ local function define_label_template()
IS_LABEL_SET_BY_PANDOC = true
end
elseif RAW_ATTRIBUTE == 'latex' then
LABEL_TEMPLATE = '\\label{{{label}}}'
if PANDOC_VERSION < pandoc.types.Version('3.1.7') then
LABEL_TEMPLATE = '\\label{{{label}}}'
else
IS_LABEL_SET_BY_PANDOC = true
end
end
end