In your Gemfile:
gem 'bluecloth'
and don’t forget to run
bundle install
when you need to convert markdown to html, simply use:
markdown = BlueCloth.new(some_text_variable).to_html
You can use it in a view:
<%= markdown.html_safe %>
In your Gemfile:
gem 'bluecloth'
and don’t forget to run
bundle install
when you need to convert markdown to html, simply use:
markdown = BlueCloth.new(some_text_variable).to_html
You can use it in a view:
<%= markdown.html_safe %>