How to use Redcarpet for syntax highlighting in Jekyll

why?
- because i don’t wanna use liquid tags. i want to keep my posts in pure markdown in case i need to switch platforms or use the posts elsewhere
- because Github uses Redcarpet for rendering .md content
- because it supports fenced code blocks.
- because it makes working with imported/exported sites easy

install

sudo gem install redcarpet

configuration

In your _config.yml file, add the entry for redcarpet and update the value for markdown.

Links

Related

Please note that this site and the posts on it are, and will always be, a work in progress. If i waited for perfection, i’d never get anything done.
A project of 29 CONCEPTS SMC-PVT LTD. Created with by Aamnah. All content is licensed under Creative Commons CC BY-SA 4.0