Add option to disable "default true" parameters
Opened this issue · 1 comments
Explain the problem.
The Reveal.js center option does not trigger, due to it being default true and its not possible to set it to false.
As explained in jgm/pandoc#7105 the centering does not trigger, when centering is set to false.
jgm said, that the template language does not support some kind to check the definedness of a value, therefore does not support this currently.
A possible fix is to add the center parameter as dont_center
and then set center: !$center$
.
This is counter intuitive and should be documented for anybody to find this.
I can't estimate how often such "default true" parameters happen to appear, but a better fix would of course be to add a definedness check
I'm going to move this to doctemplates.
Meanwhile I'll do something more local in pandoc to fix the center
issue.