module Downr::Helpers
Helper namespace for views
Public Instance Methods
render_markdown(markdown)
click to toggle source
View helper to render a variable containing markdown in the view, calls html_safe on it!
@param [String] markdown the markdown to render
@return [String] html safe string
# File lib/downr/action_view/helpers.rb, line 12 def render_markdown(markdown) Downr::Markdown.render(markdown).html_safe end