title: Escaping double curly braces inside a markdown code block in Jekyll
body: <p>I'm using Jekyll to create a documentation site wherein I am trying to document some code that contains handlebars-like syntax. For example <code>{{foo}}</code>. The problem is that Jekyll uses liquid tags and no matter what I do, my double curlies are getting ripped out by the liquid processor.</p>
  
  <p>By the way, I'm using kramdown as the markdown processor.</p>
  
  <p>Here is something I've tried:</p>
  
  <pre><code>{% highlight html linenos %}
    Hello, my name is {{name}}.
  {% endhighlight %}
  </code></pre>
  
  <p>This one removes the {{name}} section completely because it thinks it's a reference to a liquid variable.</p>
  
  <p>I also tried this:</p>
  
  <pre><code>{% highlight html linenos %}
    Hello, my name is \{\{name\}\}.
  {% endhighlight %}
  </code></pre>
  
  <p>In this case, I'm trying to escape the curly braces but the result is that the slashes get rendered into the page.</p>
  
  <p>I even tried this:</p>
  
  <pre><code>{% highlight html linenos %}
    Hello, my name is &lt;span&gt;{&lt;/span&gt;{name}}.
  {% endhighlight %}
  </code></pre>
  
  <p>Admittedly this one was pretty dumb. In this case, because I've specified the syntax as html (which it needs to be), the span tag gets rendered into the page.</p>
  
  <p>So how in the world can I resolve this?</p>