Skip to content

Instantly share code, notes, and snippets.

@lentzi90
Created December 7, 2021 10:58
Show Gist options
  • Save lentzi90/a834ff38058f54106afdb83e2a3d7b99 to your computer and use it in GitHub Desktop.
Save lentzi90/a834ff38058f54106afdb83e2a3d7b99 to your computer and use it in GitHub Desktop.
Use pandoc in a container to generate Reveal.js slides from markdown files.

Reveal.js using pandoc in a container

This uses the official pandoc containers.

docker run --rm --volume "`pwd`:/data" --user `id -u`:`id -g` pandoc/latex:2.16 -t revealjs -s -o slides.html slides.md -V revealjs-url=https://unpkg.com/reveal.js

See the Pandoc manual for how to write the slides.

See built in themes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment