This might be an old post, but recently I hit the same issue:
I couldn't escape ---
in markdown such that remarkjs can render them as individual slides. In Jekyll 4.2.2, the ---
was converted into </hr>
and this was braking remarkjs.
My solution was to write my content for slides into an .md
file and put it under _includes/presentations
. I didn't add any ---
at the beginning of this file so it will not be picked-up by Kramdown for processing. Then I added a regular .md
file in _posts
, to this file I added the previous one as an include
between <pre>
tags.
Content of the post file is:
---
layout: presentation
title: TDD Workshop Presentation
permalink: /tdd-workshop-presentation/
---
<pre>{% include presentations/tdd-workshop-1.md %}</pre>
Content of presentations/tdd-workshop-1.md
# TDD
## Test Driven Development Workshop
---
# Agenda
1. Introduction
2. Deep-dive
3. ...
Please mind the new line at the beginning of this file, as that's necessary for the first tag to be rendered properly.
I hope that this helps.
– Garr Godfrey Mar 27 '22 at 18:51