Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Jekyll plugin that improves the typography of your Liquid templates.
Jekyll Typogrify is a Jekyll plugin (a Ruby gem) that improves the typography of Liquid templates by providing filters such as Smartypants, Widont, Titlecase, and Ampersand handling. It builds on the typogruby and titlecase libraries to automatically produce better-looking HTML from plain text.
Jekyll::Typogrify is a Ruby gem that plugs into Jekyll to transform Liquid template output. It takes standard text and applies typographic rules—like converting straight quotes to curly quotes, preventing widows, and wrapping ampersands—and outputs HTML with styled spans and entities. The plugin is developed by Myles Braithwaite and distributed via RubyGems.
"Today I'm going to the... coffeeshop." becomes "Today I’m going to the… coffeeshop.").<span class="amp">&</span> for styling.<span class="caps">, with a custom module supporting hyphens (e.g., "P-51").©).<span class="dquo"> for drop caps styling.<span class="fix-letter-spacing"> to words like "click" to fix kerning.<span class="emdash">—</span>..amp, .caps, and .dquo that can be targeted with CSS.smartypants filter to post content to convert straight quotes and hyphens to typographically correct characters.widont on headings to prevent a single word from wrapping to a new line.letter_spacing to words that need custom kerning (the plugin includes a workaround for "click" looking like "dick").improve to run multiple typographic transformations at once.Install the gem by adding gem 'jekyll-typogrify' to your Gemfile and running bundle, or install it directly with gem install jekyll-typogrify. Then enable the plugin by appending jekyll-typogrify to the gems array in your Jekyll _config.yml. Once enabled, the provided Liquid filters become available in your templates.
Yes, it is open source and released under a permissive license. It can be installed from RubyGems without paying a fee.
improve and smartypants?The improve filter runs all typographic transformations provided by typogruby—including smartypants, widont, ampersand handling, and more—in one call. The smartypants filter only converts quotes and punctuation, leaving other improvements such as widont and caps untouched.
GitHub Pages supports a fixed set of Jekyll plugins. Jekyll::Typogrify is not officially listed on GitHub Pages' supported plugins list, so it may not run in that environment. To use it, you may need to build the site locally and push the generated output.
No. The plugin is specifically built for Jekyll and relies on Jekyll's plugin system and Liquid filters. Using it elsewhere would require porting the plugin logic to a different platform.