I was recently reviewing a post I’d written previously, “Tip - Quickly Upgrade Docker Containers,” when I noticed something.

Some code samples are being displayed incorrectly.

wrongOne

and

wrongTwo

Which was strange.

As a reminder, I am using Jekyll to write and manage this blog.

Because the source code is definitely correct.

sourceOne

and

sourceTwo

The problem is the double curly braces, which Jekyll interprets as interpolation markers.

Jekyll actually warns you about this when you build the site.

jekyllWarn

The solution to this is to wrap your code in two tags: raw and endraw. Like this:

correctOne

and

correctTwo

The site will now render correctly.

finalOne

and

finalTwo

You can view the updated post here