While writing the last post I encountered the problem of escaping liquid markup. Here is a simple solution I found online:

{% raw %}
    // liquid code
{% endraw %}

Simply wrap your liquid code around the raw and endraw tags and liquid will stop processing everything in between.

If you want to escape {% raw %} and {% endraw %} like I just did, use:

{{ "{%" }} raw %}

and

{{ "{%" }} endraw %}