test/dummy/app/helpers/application_helper.rb in md_emoji-0.0.7 vs test/dummy/app/helpers/application_helper.rb in md_emoji-0.0.8
- old
+ new
@@ -1,6 +1,12 @@
module ApplicationHelper
+ def md(text)
+ markdown = Redcarpet::Markdown.new(MdEmoji::Render,
+ :no_intra_emphasis => true)
+
+ markdown.render(text).html_safe
+ end
end