That would have been inside Pandoc Manual if there was such a feature and according to this pandoc-discuss it is not possible with pandoc.
What it is possible, is to define some more general variables that will contain things you want to change.
For example if you want to use the English language, set a variable lang.en
and check it with $if(lang.en)$
. If you want another language then unset lang.en
and set lang.fr
and use it like this:
$if(lang.en)$
Hello
$else$
Aloha
$endif$
$if(lang.fr)$
Bonjour
$else$
Aloha
$endif$