TIL: Publishing Markdown Slides with Pandoc

I have used Pandoc for very small things but I just found a feature killer. Instead of using the proprietary Google Slides, I can just write them in markdown and quickly convert them to HTML slides with pandoc with the following command:

pandoc -t revealjs -s -o test.html

In this case I’m using revealJS but there other options.

I can even set a command for hot reloading with entr:

ls | entr pandoc -t revealjs -s -o test.html

And, finally you can even change the theme!

pandoc -t revealjs -s -V theme:sky -o test.html

When happy, I can just publish the slides to my public folder as you can see here.