Upgrade Earmark to v1.4.10
This commit is contained in:
parent
f2bf2131b4
commit
e9e17e5df3
8 changed files with 95 additions and 261 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue