Markdown - YaleSTC/reservations GitHub Wiki
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+).