Method: BumbleHelper#markdown
- Defined in:
- app/helpers/bumble_helper.rb
#markdown(text) ⇒ Object
2 3 4 |
# File 'app/helpers/bumble_helper.rb', line 2 def markdown(text) text.blank? ? "" : sanitize(RDiscount.new(text).to_html, :tags => %w(a p pre code b strong em i strike ul ol li blockquote br)) end |