Enable a bunch more markdown options.

Allow Snap_!_ to be rendered right.
This commit is contained in:
Michael Ball 2019-12-19 01:45:04 -08:00
parent 78394bb0d3
commit 43b65cc509

View file

@ -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