Comment out Earmark-related code (no markdown for now)

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-12-20 18:30:51 +01:00
parent e5ef51c40e
commit 0f31535cf3
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -110,14 +110,14 @@ defmodule MobilizonWeb.API.Utils do
|> Formatter.finalize() |> Formatter.finalize()
end end
def format_input(text, mentions, tags, "text/markdown") do # def format_input(text, mentions, tags, "text/markdown") do
text # text
|> Earmark.as_html!() # |> Earmark.as_html!()
|> Formatter.html_escape("text/html") # |> Formatter.html_escape("text/html")
|> String.replace(~r/\r?\n/, "") # |> String.replace(~r/\r?\n/, "")
|> (&{[], &1}).() # |> (&{[], &1}).()
|> Formatter.add_actor_links(mentions) # |> Formatter.add_actor_links(mentions)
|> Formatter.add_hashtag_links(tags) # |> Formatter.add_hashtag_links(tags)
|> Formatter.finalize() # |> Formatter.finalize()
end # end
end end