Class: StrapiRuby::Markdown

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/strapi_ruby/markdown.rb

Instance Method Summary collapse

Instance Method Details

#to_html(markdown) ⇒ Object



10
11
12
13
14
# File 'lib/strapi_ruby/markdown.rb', line 10

def to_html(markdown)
  return "" if markdown.nil?
  
  markdown_renderer.render(markdown)
end