Module: Markdownify

Defined in:
lib/scribo/liquid/filters/markdownify.rb

Instance Method Summary collapse

Instance Method Details

#markdownify(input) ⇒ Object



4
5
6
7
8
# File 'lib/scribo/liquid/filters/markdownify.rb', line 4

def markdownify(input)
  # Easiest way at the moment
  Scribo::ContentRenderService.new(Scribo::Content.new(kind: 'text', data: input), {}, layout: false,
                                                                                       filter: 'markdown').call
end