I'm trying to use the gem in my application and wanted to test it out in the console first.
I'm using Rails 3.2.12 along with Ruby 1.9.3p194
bundle exec rails c
Loading development environment (Rails 3.2.12)
1.9.3p194 :001 > markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
1.9.3p194 :002 > markdown.render("This is *bongos*, indeed.")
1.9.3p194 :003 > markdown.render("# Hello World")
Any ideas as to what's going on? Do I need to compile anything when using the Gem version?
Thanks in advance!
Can you share your Gemfile with us? Your example is working for me...
Also please try delete Gemfile.lock and re-run bundle install
I think redcarpet does not work with rails 3.2.12. I updated my Gemfile to 3.2.12 and redcarpet stop working. Downgrading back to 3.2.11 and everything works again
I using RedCarpet and Rails 3,2,12 without any problem.
FYI: I think I got a gems conflict and/or bad gem installation. Emptied the gemset to start from scratch and everything is working again. Removed the Gemfile.lock didn't help btw
Glad you got it working!