Excessively Adequate

Processing Markdown in Jekyll Post Titles

This’ll be a quick one.

My recent post on pigeons includes their scientific name Columba livia domestica in its title, and I wanted it to be italicized because that’s just how you format scientific names – so I needed to convinve Jekyll to parse Markdown in post titles.

Depending on your site’s architecture, you’ll need to change stuff in multiple places – in my case, it required changes in three spots:

  1. The | escape bit converts certain characters into HTML entities – imagine a post clickbaitily titled “5 reasons to use <em> instead of <i>!”; it’d render as “5 reasons to use instead of!”