forked from potsda.mn/mobilizon
Comment out Earmark-related code (no markdown for now)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
e5ef51c40e
commit
0f31535cf3
|
@ -110,14 +110,14 @@ defmodule MobilizonWeb.API.Utils do
|
|||
|> Formatter.finalize()
|
||||
end
|
||||
|
||||
def format_input(text, mentions, tags, "text/markdown") do
|
||||
text
|
||||
|> Earmark.as_html!()
|
||||
|> Formatter.html_escape("text/html")
|
||||
|> String.replace(~r/\r?\n/, "")
|
||||
|> (&{[], &1}).()
|
||||
|> Formatter.add_actor_links(mentions)
|
||||
|> Formatter.add_hashtag_links(tags)
|
||||
|> Formatter.finalize()
|
||||
end
|
||||
# def format_input(text, mentions, tags, "text/markdown") do
|
||||
# text
|
||||
# |> Earmark.as_html!()
|
||||
# |> Formatter.html_escape("text/html")
|
||||
# |> String.replace(~r/\r?\n/, "")
|
||||
# |> (&{[], &1}).()
|
||||
# |> Formatter.add_actor_links(mentions)
|
||||
# |> Formatter.add_hashtag_links(tags)
|
||||
# |> Formatter.finalize()
|
||||
# end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue