Fragments don't get shown in RevealJS
When running decktape in revealjs, fragments don't get shown.
For example, this:
### Fragments
Hide and show elements in a sequence with fragments.
```md
<div class="fragment">Fragment 1.</div>
<div class="fragment">Fragment 2.</div>
```
<div class="fragment">Fragment 1.</div>
<div class="fragment">Fragment 2.</div>
Gets printed as this:
I've traced the problem. Configuring fragments in the reveals plugin is possible, but it isn't possible to configure it.
See https://github.com/astefanutti/decktape/blob/master/plugins/reveal.js#L22
I'm pretty sure this used to work. I think https://github.com/astefanutti/decktape/commit/cad65694716071d7a23f67aa47c6cd8adb8c6430 might have broken it.
Ok, I found the issue. The options from reveal don't get applied when the command is automatic. This effectively makes automatic mode unusable for reveal presentations.
As mentioned, this used to work, so I think it is a regression.
Current workaround is to use "reveal" mode explicitly:
- decktape http://localhost:15000 out.pdf
+ decktape reveal http://localhost:15000 out.pdf
I wonder if that could be caused by 83771f9a65c828649b2674c2d654453f8aec5be5 instead.
My understanding is that fragments used to be disabled by default. It used to be possible to enable them via the URL, but indeed now it's a CLI option, it can only be enabled with decktape reveal --fragments.
I think the fix should be to also apply options for discovered UI libraries using automatic mode.
Right, the automatic sub-command should ideally pass-through all the options to the selected plugin.