Search code examples
htmlmarkdownslideshowpandoc

pandoc markdown slides shown as a long html page


I am experimenting with markdown slides, using this example:

% My Lovely Title
% I am the author

# First Slide 🌎

- bullet one
- bullet two
- bullet three

# Second Slide

- this is important
- this is not

When I generate the slideshow it appears in the browser (Firefox, Chrome) as a single html file

$ pandoc -t slidy -s slides.md -o slides.html

What am I missing?


Solution

  • TLDR: nothing was wrong with pandoc, it was completely the browser's fault.

    Apparently, some browsers have a strict policy against running javascript in certain scenarios. I'm not exactly sure how to disable it, but the display as html slides is using javascript in a way that triggers heavy alarms in my browser, causing it to be displayed as one long html file.