In my earlier post, I wanted to write about a Liquid script for embedding a YouTube in a Jekyll blog, but the Liquid tag kept triggering the script.

I tried the following without success:

  • Using Markdown and HTML syntax for code.
  • Using an escape character (\) in several places.

Yesterday, I found the answer in a Stack Overflow post, How to escape liquid template tags?. This post discusses several solutions. The one that works for me is using the raw tag. Apparently, there was once a plugin that allowed the use of the raw tag, but as fregante states, “it works out of the box and now it’s in the docs.”

As I do with all useful code scripts, I created a TextExpander snippet that allows me to insert the raw tag with a keyboard shortcut.