From: William Pitcock Date: Thu, 10 Jan 2019 02:22:11 +0000 (+0000) Subject: common api: fix newlines in markdown code blocks X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=2ecf81f10c1ebc01d21b4183f6cd248ce5cfbd6a;p=akkoma common api: fix newlines in markdown code blocks --- diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 3ff9f9452..187e908ce 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -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)