Markdown With Ruby
2009-11-26 07:48:07 | 0 Comment
I love markdown and I was searching how to use markdown with Ruby for a Rails project and thanks to [Ryan Tomayko](http://tomayko.com/), a [sinatrarb](http://www.sinatrarb.com/) developer, I am now using [Discount](http://www.pell.portland.or.us/~orc/Code/markdown/).
Installation is very easy:
sudo gem install rdiscount
You can give it a try on the Rails shell or IRB. Here is a quick example:
require 'rdiscount'
text = RDiscount.new("This is a **test**.")
text.to_html
And you get:
"
This is a text
\n" Enjoy!
Check my latest project compector.com where you can post references about your former employers and see what others have said about the future employers. Sign up now and post a reference and share it on twitter or facebook.


Comments
Leave a Response