To escape double-stashes (as seen in Mustache, Handelbars templates etc) within Liquid/Pygments highlight blocks:
You've got to put this {{ " directly before the opening double-stashes and this " }} directly before the closing double-stashes.
So say you're trying to highlight something like this:
<template attr='{{ value }}'>
<li>{{ this }}</li>
</template>
Your markdown would look like this:
{% highlight html %}
<template repeat='{{ "{{ arr "}}}}' if='{{ "{{ arrRepeat "}}}}'>
<li>{{ "{{"}} }}</li>
</template>
{% endhighlight %}
Crazy stuff but somehow it works...
Resource:
This little gem