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 slides.md -o test.html
In this case I’m using revealJS but there other options.
I can even set a command for hot reloading with
ls slides.md | entr pandoc -t revealjs -s slides.md -o test.html
And, finally you can even change the theme!
pandoc -t revealjs -s slides.md -V theme:sky -o test.html
When happy, I can just publish the slides to my public folder as you can see here.