diff options
author | Alex Gleason <alex@alexgleason.me> | 2020-10-13 14:27:50 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-12-11 17:22:42 -0600 |
commit | f8c93246d69a193ead81248879ba260e98673b3d (patch) | |
tree | 493fdc9f2b3b4b2aa0734db6a2d7f9fd1b81ac7f /lib/pleroma/web/common_api | |
parent | b2548cfcdabdcb90bfcc9f4022c0b1cff9157a4a (diff) | |
download | pleroma-f8c93246d69a193ead81248879ba260e98673b3d.tar.gz |
Refactor Earmark code, fix tests
Diffstat (limited to 'lib/pleroma/web/common_api')
-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 b434a069e..be86009af 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -294,7 +294,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do def format_input(text, "text/markdown", options) do text |> Formatter.mentions_escape(options) - |> Earmark.as_html!() + |> Formatter.markdown_to_html() |> Formatter.linkify(options) |> Formatter.minify("text/html") |> Formatter.html_escape("text/html") |