Module: MarkdownHelper

Includes:
EmojiHelper
Defined in:
app/helpers/markdown_helper.rb

Instance Method Summary collapse

Methods included from EmojiHelper

#emojify

Instance Method Details

#mdown(text) ⇒ Object



4
5
6
7
# File 'app/helpers/markdown_helper.rb', line 4

def mdown(text)
  return "" if text.blank?
  emojify Kramdown::Document.new(text).to_html.html_safe
end

#slackdown(text) ⇒ Object



9
10
11
# File 'app/helpers/markdown_helper.rb', line 9

def slackdown(text)
  Slackdown.convert(text)
end