I\'m using Jekyll to create a documentation site wherein I am trying to document some code that contains handlebars-like syntax. For example {{foo}}
. The proble
You can use {% raw %}
to ensure content is unmodified by Jekyll:
{% raw %}
This is inserted literally: {{foo}}
{% endraw %}
However, note that this is not a code block. You will need additional code formatting to make your content render as code:
{% raw %}
I'm a code block, because I'm indented by 4 spaces
{% endraw %}
{% raw %}
```handlebars
I'm a code block that contains {{handlebars}}
with highlighting.
```
{% endraw %}