Commit 0bdbd4f9 authored by kaniini's avatar kaniini
Browse files

common api: utils: remove newline to <br> conversion from bare HTML to be consistent with markdown

ok @lanodan
parent 2ecf81f1
......@@ -136,7 +136,6 @@ def format_input(text, mentions, tags, "text/plain") do
def format_input(text, mentions, _tags, "text/html") do
|> Formatter.html_escape("text/html")
|> String.replace(~r/\r?\n/, "<br>")
|> (&{[], &1}).()
|> Formatter.add_user_links(mentions)
|> Formatter.finalize()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment