aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/common_api/utils.ex
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2020-10-13 00:27:51 -0500
committerMark Felder <feld@FreeBSD.org>2020-12-11 17:22:17 -0600
commite9e17e5df34051bce60232890ea042582af31f8c (patch)
tree6feac650f042c3c83665bd519bd2c7cdfc75af5e /lib/pleroma/web/common_api/utils.ex
parentf2bf2131b4721eb579d248bfc4913a80801efcb7 (diff)
downloadpleroma-e9e17e5df34051bce60232890ea042582af31f8c.tar.gz
Upgrade Earmark to v1.4.10
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r--lib/pleroma/web/common_api/utils.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex
index 1c74ea787..b434a069e 100644
--- a/lib/pleroma/web/common_api/utils.ex
+++ b/lib/pleroma/web/common_api/utils.ex
@@ -294,8 +294,9 @@ defmodule Pleroma.Web.CommonAPI.Utils do
def format_input(text, "text/markdown", options) do
text
|> Formatter.mentions_escape(options)
- |> Earmark.as_html!(%Earmark.Options{renderer: Pleroma.EarmarkRenderer})
+ |> Earmark.as_html!()
|> Formatter.linkify(options)
+ |> Formatter.minify("text/html")
|> Formatter.html_escape("text/html")
end