Module: MarkdownHelper
- Defined in:
- app/helpers/markdown_helper.rb
Instance Method Summary collapse
Instance Method Details
#md(text) ⇒ Object
4 5 6 |
# File 'app/helpers/markdown_helper.rb', line 4 def md(text) parser.render(text.to_s).html_safe end |
#stripdown(text) ⇒ Object
8 9 10 |
# File 'app/helpers/markdown_helper.rb', line 8 def stripdown(text) stripper.render(text.to_s).squish end |