Articles on Ruby Programming

The Ruby blog is home to great freebies, tutorials, cheatsheets and helpful links. We will also periodically make posts about the company's growth and any major changes in the Ruby ecosystem.

Become a Subscriber

Custom Markdown and Links in Redcarpet

  • 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?