Prevent markup of markdown in template


#1

I am working on integrating reveal.js into my minimal mistakes-based theme. I’ve created a layout for these posts and I’d like to use markdown as my presentation markup for Reveal. However, I’d like to pass the content to the layout without Jekyll rendering the markdown.

If I begin my post markdown file with: {::nomarkdown} and end my post with {:/} I’m able to pass the unrendered content to the page’s DOM and reveal will create slides as per my markup and configuration.

However, I’d prefer if I can call {{ content }} to pass the raw post contents, rather than to always add the no markup instruction to my posts.

My reveal.html layout

<!doctype html>

{% include_cached browser-upgrade.html %}

<div class="reveal">
  <div class="slides">
    <section data-markdown
             data-separator="^\n\n\n"
             data-separator-vertical="^\n\n"
             data-separator-notes="^Note:">
      {{ content }}
    </section>
  </div>
</div>

<script src="{{ site.baseurl }}/assets/reveal/js/reveal.js"></script>
<script src="{{ site.baseurl }}/assets/reveal/plugin/markdown/marked.js"></script>
<script src="{{ site.baseurl }}/assets/reveal/plugin/markdown/markdown.js"></script>
<script>
  Reveal.initialize();
</script>

Thanks in advance.