Class: Locomotive::Steam::MarkdownService

Inherits:
Object
  • Object
show all
Defined in:
lib/locomotive/steam/services/markdown_service.rb

Instance Method Summary collapse

Instance Method Details

#to_html(text) ⇒ Object



8
9
10
11
12
# File 'lib/locomotive/steam/services/markdown_service.rb', line 8

def to_html(text)
  return '' if text.blank?

  Kramdown::Document.new(text, auto_ids: false).to_html
end