Escaping Liquid Tags in Jekyllrb

Liquid is a template engine used in Jekyllrb.

In order to use liquid tags within code blocks without it being parsed, we need to escape it first.

There is a tag built into liquid called ‘raw’ which will do the escaping automatically for you.

Below is an example of using the raw tag to escape some liquid markup in a pre code block:

1
<p>{% you should be able to see the curly braces! %}</p>

Happy Hacking!