mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-23 16:56:43 +00:00
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',