Sha256: 6510c2c1b86fef2016fb3d95849f1a4bb631115d84799c07109b4ac16c83ce9d
Contents?: true
Size: 371 Bytes
Versions: 4
Compression:
Stored size: 371 Bytes
Contents
module Downr # Helper namespace for views module Helpers # 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 def render_markdown(markdown) Downr::Markdown.render(markdown).html_safe end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
downr-0.0.7 | lib/downr/action_view/helpers.rb |
downr-0.0.6 | lib/downr/action_view/helpers.rb |
downr-0.0.5 | lib/downr/action_view/helpers.rb |
downr-0.0.4 | lib/downr/action_view/helpers.rb |