gnab / remark

A simple, in-browser, markdown-driven slideshow tool.
http://remarkjs.com
MIT License
12.7k stars 856 forks source link

Using jekyll's "includes" with remark #660

Open ratnanil opened 3 years ago

ratnanil commented 3 years ago

I'm happily using remark with jekyll. Jekyll let's me work with a template file, as it is descrbed in the wiki.

I would also like to use jekyll's include command in my slides, e.g. {% include something.html %}. But somehow, I cant get this working: when I build my slides, the command {% include something.html %} is parsed literally into my slide (see screenshot below).

The content of my default-presentation.md file is below, where as _includes/test.html contains just <p>test</p>. I've also created a minimal repo containing all the files, here

---
layout: presentation
title: Default Presentation
permalink: /default-presentation/
---

# My Awesome Presentation

{% include test.html %}

Screenshot 2021-09-25 at 23-59-13 Default Presentation

ratnanil commented 3 years ago

this question has been answered here: https://stackoverflow.com/questions/69333890/using-jekylls-includes-with-remark/69365142?noredirect=1#comment122607165_69365142

the answer shows the reason, I haven't been able to find a workaround yet

flexbox commented 1 year ago

@ratnanil Can you use partial with jekyll?

This is working with middleman https://github.com/flexbox/courses/blob/master/source/presentations/book/index.html.slim#L36

= partial 'layouts/presentation/speaker'