diff options
author | Alex Gleason <alex@alexgleason.me> | 2020-10-13 00:27:51 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-12-11 17:22:17 -0600 |
commit | e9e17e5df34051bce60232890ea042582af31f8c (patch) | |
tree | 6feac650f042c3c83665bd519bd2c7cdfc75af5e /lib/pleroma/web/common_api/utils.ex | |
parent | f2bf2131b4721eb579d248bfc4913a80801efcb7 (diff) | |
download | pleroma-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.ex | 3 |
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 |