mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-27 00:33:02 +01:00
14 lines
286 B
Ruby
14 lines
286 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FlavoredMarkdown < Redcarpet::Render::HTML
|
|
include Rails.application.routes.url_helpers
|
|
include SharedMarkers
|
|
|
|
def header(text, _header_level)
|
|
"<p>#{text}</p>"
|
|
end
|
|
|
|
def raw_html(raw_html)
|
|
Rack::Utils.escape_html raw_html
|
|
end
|
|
end
|