Module: ApiTaster::ApplicationHelper

Defined in:
app/helpers/api_taster/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#markdown(text) ⇒ Object



5
6
7
8
# File 'app/helpers/api_taster/application_helper.rb', line 5

def markdown(text)
  markdown_renderer ||= Redcarpet::Markdown.new(Redcarpet::Render::HTML)
  markdown_renderer.render(text).html_safe
end