diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-02-13 03:39:47 +0100 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-03-15 16:59:52 +0300 |
commit | 5f9fbd7d336d2ffed6cd8f2640d9399f78ed7c2f (patch) | |
tree | 82cf417777657b8b6a8c15f475e343f29a0340bf /lib/pleroma/web/common_api/utils.ex | |
parent | 80bc8c2cc980b5e3270110313514a5bad2d3c9fb (diff) | |
download | pleroma-5f9fbd7d336d2ffed6cd8f2640d9399f78ed7c2f.tar.gz |
Formatting: Do not use \n and prefer <br> instead
It moves bbcode to bbcode_pleroma as the former is owned by kaniini
and transfering ownership wasn't done in a timely manner.
Closes: https://git.pleroma.social/pleroma/pleroma/issues/1374
Closes: https://git.pleroma.social/pleroma/pleroma/issues/1375
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 348fdedf1..635e7cd38 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -331,7 +331,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do def format_input(text, "text/markdown", options) do text |> Formatter.mentions_escape(options) - |> Earmark.as_html!() + |> Earmark.as_html!(%Earmark.Options{renderer: Pleroma.EarmarkRenderer}) |> Formatter.linkify(options) |> Formatter.html_escape("text/html") end |