mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 08:16:16 +00:00
common api: fix newlines in markdown code blocks
This commit is contained in:
parent
be92edcb29
commit
2ecf81f10c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue