mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 11:57:16 +00:00
7bd9dbecdc
RevealJS defaults scrollProgress to 'auto', but the writer was setting it to true. Use lookupMeta to distinguish between MetaBool True, MetaBool False, and unset (defaulting to 'auto'). The template uses a helper variable scrollProgressAuto since pandoc templates cannot distinguish a MetaString "auto" from MetaBool True in a single variable.
1.4 KiB
1.4 KiB
% pandoc -t revealjs --template=command/11486/scroll.revealjs
---
view: scroll
---
^D
scrollActivationWidth: 0,
scrollSnap: 'mandatory',
scrollProgress: 'auto',
% pandoc -t revealjs --template=command/11486/scroll.revealjs
---
view: scroll
scrollSnap: false
---
^D
scrollActivationWidth: 0,
scrollSnap: false,
scrollProgress: 'auto',
% pandoc -t revealjs --template=command/11486/scroll.revealjs
---
view: scroll
scrollSnap: proximity
---
^D
scrollActivationWidth: 0,
scrollSnap: 'proximity',
scrollProgress: 'auto',
% pandoc -t revealjs --template=command/11486/scroll.revealjs
---
view: scroll
scrollActivationWidth: 500
---
^D
scrollActivationWidth: 500,
scrollSnap: 'mandatory',
scrollProgress: 'auto',
% pandoc -t revealjs --template=command/11486/scroll.revealjs
---
view: scroll
scrollProgress: true
---
^D
scrollActivationWidth: 0,
scrollSnap: 'mandatory',
scrollProgress: true,
% pandoc -t revealjs --template=command/11486/scroll.revealjs
---
view: scroll
scrollProgress: false
---
^D
scrollActivationWidth: 0,
scrollSnap: 'mandatory',
scrollProgress: false,
% pandoc -t revealjs --template=command/11486/scroll.revealjs
---
view: scroll
scrollProgress: auto
---
^D
scrollActivationWidth: 0,
scrollSnap: 'mandatory',
scrollProgress: 'auto',