mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-24 02:02:19 +00:00
common api: utils: remove newline to <br> conversion from bare HTML to be consistent with markdown
ok @lanodan
This commit is contained in:
parent
2ecf81f10c
commit
0bdbd4f968
|
@ -136,7 +136,6 @@ defmodule Pleroma.Web.CommonAPI.Utils do
|
|||
def format_input(text, mentions, _tags, "text/html") do
|
||||
text
|
||||
|> Formatter.html_escape("text/html")
|
||||
|> String.replace(~r/\r?\n/, "<br>")
|
||||
|> (&{[], &1}).()
|
||||
|> Formatter.add_user_links(mentions)
|
||||
|> Formatter.finalize()
|
||||
|
|
Loading…
Reference in a new issue