diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index deb945fb..bdd802e2 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -27,6 +27,10 @@ class HTMLRenderer < Redcarpet::Render::HTML def header(text, header_level) "
#{text}
" + end def triple_emphasis(text) "#{text}" @@ -123,8 +127,9 @@ class Formatter def format_markdown(html) html = markdown_formatter.render(html) - # html.delete("\r").delete("\n") - html = html.gsub(/(?:\n\r?|\r\n?)/, '