Sha256: 1f2374bd007799363e09854f30dbc9a88329f3bd3cb8e7bf7e1b414da9c95acd
Contents?: true
Size: 471 Bytes
Versions: 6
Compression:
Stored size: 471 Bytes
Contents
module NippoCore module ReportDecorator def title "#{reported_at} #{user.nickname}" end def markdowned_body options = { autolink: true, space_after_headers: true, fenced_code_blocks: true, tables: true, hard_wrap: true, strikethrough: true, filter_html: true } markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, options) markdown.render(body) end end end
Version data entries
6 entries across 6 versions & 1 rubygems