This repository has been archived by the owner on Jul 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Markdown
dgoerger edited this page Jul 16, 2012
·
2 revisions
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.
markdown("text")
- Gemfile => gem 'redcarpet'
- application_helper.rb => define markdown(text)
- terms_of_service/index, reservations/_reservation_details, equipment_model/show, all the receipts => call markdown
- 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+).