projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix formatter warnings
[akkoma]
/
lib
/
pleroma
/
web
/
common_api
/
utils.ex
diff --git
a/lib/pleroma/web/common_api/utils.ex
b/lib/pleroma/web/common_api/utils.ex
index 348fdedf10be2228a59b2cba6c65cf8840890b04..635e7cd385e47d2f8be8c94aadb25f54791c614f 100644
(file)
--- a/
lib/pleroma/web/common_api/utils.ex
+++ b/
lib/pleroma/web/common_api/utils.ex
@@
-331,7
+331,7
@@
defmodule Pleroma.Web.CommonAPI.Utils do
def format_input(text, "text/markdown", options) do
text
|> Formatter.mentions_escape(options)
def format_input(text, "text/markdown", options) do
text
|> Formatter.mentions_escape(options)
- |> Earmark.as_html!()
+ |> Earmark.as_html!(
%Earmark.Options{renderer: Pleroma.EarmarkRenderer}
)
|> Formatter.linkify(options)
|> Formatter.html_escape("text/html")
end
|> Formatter.linkify(options)
|> Formatter.html_escape("text/html")
end