News, Articles & Tutorials

This is an aggregate feed of all our article topics. We often share great freebies, tutorials, cheatsheets and helpful links. We will also periodically make posts about the company's growth here as well.

Become a Subscriber

Custom Markdown and Links in Redcarpet

ruby
  • Clayton Unicorn
  • Third Party Rails Gems

Redcarpet is probably the most popular gem for parsing Markdown in ruby, yet finding great examples on how to do method overloading and custom tags can be difficult. One of the things that we wanted to do for our own website was to have non-internal links open in a new tab (target="_blank") and to allow authors to link to resources by id rather than permalink, which works against our SEO. So how did we accomplish this?