Sha256: 60ddd85ce0f016afb1a34d0a50861f7f541ed1f17c6944d65ee5f6aa374c930e
Contents?: true
Size: 953 Bytes
Versions: 3
Compression:
Stored size: 953 Bytes
Contents
module ReleaseNotes module ApplicationHelper require 'redcarpet' def markup(markdown) extension_options = [:no_intra_emphasis => true, :tables => true, :fenced_code_blocks => true, :autolink => true, :strikethrough => true, :space_after_headers => true, :superscript => true, :underline => true, :highlight => true, :quote => true, :footnotes => true] render_options = [:filter_html => true, :hard_wrap => true, :prettify => true] renderer = Redcarpet::Render::HTML.new(*render_options) mark = Redcarpet::Markdown.new(renderer, *extension_options) mark.render(markdown) end end end
Version data entries
3 entries across 3 versions & 1 rubygems