about summary refs log tree commit diff
path: root/app/lib/formatter.rb
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-05-18 15:40:34 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:50 -0500
commite411b20711325219695007496ec8db545b67f209 (patch)
treee2570584d844c3cdb67a053070432eaf7e7537fe /app/lib/formatter.rb
parent7a0dc34cad955fecba8072f5ed3c179ba5a3fd98 (diff)
correct media reveal wording
Diffstat (limited to 'app/lib/formatter.rb')
-rw-r--r--app/lib/formatter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb
index 42911b52a..9005ec768 100644
--- a/app/lib/formatter.rb
+++ b/app/lib/formatter.rb
@@ -216,6 +216,7 @@ class Formatter
   end
 
   def format_markdown(html)
+    html = html.gsub("\r\n", "\n").gsub("\r", "\n")
     html = reformat(markdown_formatter.render(html))
     html.delete("\r").delete("\n")
   end