Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Markdown

dgoerger edited this page Jul 16, 2012 · 2 revisions

Project and implementation info

https://github.com/tanoku/redcarpet/

http://railscasts.com/episodes/272-markdown-with-redcarpet?view=comments#comment_155088

Added to Reservations/development branch on 2012.07.16 by @dgoerger in order to enable markdown syntax in equipment model descriptions, reservation notes, and TOS.

Where / How we use it

markdown("text")

Files edited

  • Gemfile => gem 'redcarpet'
  • application_helper.rb => define markdown(text)
  • terms_of_service/index, reservations/_reservation_details, equipment_model/show, all the receipts => call markdown

Things to watch out for

  • the gem docs are not wholly updated for Redcarpet v2.0+; check out syntax in the Railscast comment linked above (Railscast #272 is out of date, by the way, and not compatible with v2.0+).