class Locomotive::Steam::MarkdownService

Public Instance Methods

to_html(text) click to toggle source
# 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