5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'app/helpers/release_notes/application_helper.rb', line 5
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 => false,
:hard_wrap => true,
:prettify => true]
renderer = Redcarpet::Render::HTML.new(*render_options)
mark = Redcarpet::Markdown.new(renderer, *extension_options)
mark.render(markdown)
end
|