Jekyll and how to escape those fence codes
Jekyll has a great support for syntax highlighting, but what if you want to escape the fence codes itself?
Meet {% raw %}.
With raw, you can escape any Jekyll command, so to print the raw command above, I surrounded it with raw and endraw.
Unfortunately I can’t do it here, but you get the gist?
To output the highlight fence, I surrounded it with above and we get:
{% highlight ruby %}
Check out the Jekyll docs⇗ for more info on how to get the most out of Jekyll. File all bugs/feature requests at Jekyll’s GitHub repo⇗.
If you liked this post, you can share it with your followers⇗ and/or follow me on Twitter!