Module: Glib::FormatHelper

Defined in:
app/helpers/glib/format_helper.rb

Defined Under Namespace

Classes: CustomRenderer

Instance Method Summary collapse

Instance Method Details

#glib_format_markdown(content) ⇒ Object



15
16
17
18
# File 'app/helpers/glib/format_helper.rb', line 15

def glib_format_markdown(content)
  markdown = Redcarpet::Markdown.new(CustomRenderer, strikethrough: true, underline: false, no_intra_emphasis: true)
  markdown.render(content).delete("\n")
end