common api: fix newlines in markdown code blocks
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 10 Jan 2019 02:22:11 +0000 (02:22 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 10 Jan 2019 03:37:37 +0000 (03:37 +0000)
lib/pleroma/web/common_api/utils.ex

index 3ff9f9452bb8e79cd3814652cd79e047190593bd..187e908ce3df785292d3634f71eb2bb6ff94b734 100644 (file)
@@ -150,7 +150,6 @@ defmodule Pleroma.Web.CommonAPI.Utils do
     |> Formatter.mentions_escape(mentions)
     |> Earmark.as_html!()
     |> Formatter.html_escape("text/html")
-    |> String.replace(~r/\r?\n/, "")
     |> (&{[], &1}).()
     |> Formatter.add_user_links(mentions)
     |> Formatter.add_hashtag_links(tags)