diff --git a/layouts/partials/reveal-hugo/slides.html b/layouts/partials/reveal-hugo/slides.html index bb22e16..ac54247 100644 --- a/layouts/partials/reveal-hugo/slides.html +++ b/layouts/partials/reveal-hugo/slides.html @@ -4,6 +4,8 @@ {{- if ne (len .Content) 0 -}} {{- $content := replace .Content "
\n\n
" "
" -}} + + {{- $content := replace $content "
" "
" -}} {{- range (split $content "
") -}} diff --git a/layouts/shortcodes/slide.html b/layouts/shortcodes/slide.html index aaa49fa..0016326 100644 --- a/layouts/shortcodes/slide.html +++ b/layouts/shortcodes/slide.html @@ -8,6 +8,7 @@ {{- $markdownContent = index $markdownContent $dataPath -}} {{- end -}} {{- $html := $markdownContent | markdownify -}} + {{- $html := replace $html "
" "
" -}} {{- $slides := split $html "
" -}} {{- range $slides -}} {{- $scratch.Add "slides" . -}}