Upgrade Earmark to v1.4.10

This commit is contained in:
Alex Gleason 2020-10-13 00:27:51 -05:00 committed by Mark Felder
commit e9e17e5df3
8 changed files with 95 additions and 261 deletions

View file

@ -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