Files
Christophe Dervieux 7bd9dbecdc Revealjs writer: default scrollProgress to 'auto'.
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.
2026-02-25 11:45:30 +01:00

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',