1. Add the gem redcarpet to the Gemfile:

    gem "redcarpet"
  2. Render a Markdown string:

    Redcarpet::Markdown
      .new(Redcarpet::Render::HTML.new)
      .render(my_markdown_string)
      .html_safe