From 0f31535cf3b2154e8b84ba2d02528a0137b81252 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 20 Dec 2018 18:30:51 +0100 Subject: [PATCH] Comment out Earmark-related code (no markdown for now) Signed-off-by: Thomas Citharel --- lib/mobilizon_web/api/utils.ex | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/mobilizon_web/api/utils.ex b/lib/mobilizon_web/api/utils.ex index ad4ab283..8305a0a9 100644 --- a/lib/mobilizon_web/api/utils.ex +++ b/lib/mobilizon_web/api/utils.ex @@ -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