Sha256: 93b5653c4ad8f2c2a7c018542d14415f8f6628331b6be46ed436d0219ec0734d
Contents?: true
Size: 361 Bytes
Versions: 6
Compression:
Stored size: 361 Bytes
Contents
require 'redcarpet' module Notee module ViewHelper def notee_content(text) unless @markdown renderer = Redcarpet::Render::HTML.new(filter_html: true, hard_wrap: true) @markdown = Redcarpet::Markdown.new(renderer, :fenced_code_blocks => true, :highlight => true) end @markdown.render(text).html_safe end end end
Version data entries
6 entries across 6 versions & 1 rubygems