Enable a bunch more markdown options.
Allow Snap_!_ to be rendered right.
This commit is contained in:
parent
78394bb0d3
commit
43b65cc509
1 changed files with 5 additions and 2 deletions
|
|
@ -191,9 +191,12 @@ module FormatHelper
|
|||
return '' if text.nil?
|
||||
|
||||
options = {
|
||||
autolink: true,
|
||||
autolink: true,
|
||||
space_after_headers: true,
|
||||
no_intra_emphasis: true
|
||||
tables: true,
|
||||
strikethrough: true,
|
||||
footnotes: true,
|
||||
superscript: true
|
||||
}
|
||||
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML.new(escape_html: escape_html), options)
|
||||
markdown.render(text).html_safe
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue