mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 21:25:48 +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.
16 lines
347 B
Plaintext
16 lines
347 B
Plaintext
$if(view)$
|
|
scrollActivationWidth: $scrollActivationWidth$,
|
|
$if(scrollSnap)$
|
|
scrollSnap: '$scrollSnap/nowrap$',
|
|
$else$
|
|
scrollSnap: false,
|
|
$endif$
|
|
$if(scrollProgressAuto)$
|
|
scrollProgress: 'auto',
|
|
$elseif(scrollProgress)$
|
|
scrollProgress: $scrollProgress$,
|
|
$else$
|
|
scrollProgress: false,
|
|
$endif$
|
|
$endif$
|