From 43b65cc5094f96d57c6705cd02ec5db504603560 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Thu, 19 Dec 2019 01:45:04 -0800 Subject: [PATCH] Enable a bunch more markdown options. Allow Snap_!_ to be rendered right. --- app/helpers/format_helper.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/helpers/format_helper.rb b/app/helpers/format_helper.rb index b0691518..9289b79c 100644 --- a/app/helpers/format_helper.rb +++ b/app/helpers/format_helper.rb @@ -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