Sha256: 6093a1dfa3780b19df403e5b09cb98aebcdfae74ae0c8168f23052a0a49320d3
Contents?: true
Size: 277 Bytes
Versions: 2
Compression:
Stored size: 277 Bytes
Contents
module Recruiter module MarkdownHelper def to_markdown(text) renderer.render(text).html_safe end def renderer @renderer ||= Redcarpet::Render::HTML.new(filter_html: true) @md_renderer ||= Redcarpet::Markdown.new(@renderer) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
recruiter-0.0.3 | app/helpers/recruiter/markdown_helper.rb |
recruiter-0.0.2 | app/helpers/recruiter/markdown_helper.rb |