Generating revealjs presentations which include animation from markdown

Presentation slides
draft
markdown
presentations
Published

March 14, 2025

I’ve been creating revealjs presentations from markdown for a while now. I wrote about it here:

But each time I do it I’ve been doing it from scratch, by getting ChatGPT or Claude to generate the HTML from the Markdown. That works, but I have to tweak the output, and the style may not be consistent. It would be much better to have a script that generates the revealjs HTML from the Markdown. Also, I would like to be able to include animations in my presentations, and I want a simple and consistent way to do that.

I’ve done a few experiments to find the best way to create markdown files such that I can generate revealjs presentations from them, and include animations in the presentations from variables in the markdown. Here are the experiments:

Now I want to create a script to generate a presentation from an export of my markdown editor (Bear App). I’ll do some vibe-coding with Claude 3.7 Sonnet to do that.