From a603961a8a0d670f6a0879b8074e7e4e5604716b Mon Sep 17 00:00:00 2001 From: Luna D Date: Thu, 23 Sep 2021 00:13:23 +0200 Subject: [PATCH] remove escaping of new lines temporarily --- lib/philomena/textile/parser_markdown.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena/textile/parser_markdown.ex b/lib/philomena/textile/parser_markdown.ex index a75290b0..85ce26fe 100644 --- a/lib/philomena/textile/parser_markdown.ex +++ b/lib/philomena/textile/parser_markdown.ex @@ -511,11 +511,11 @@ defmodule Philomena.Textile.ParserMarkdown do defp block_textile_element(_parser, [{:double_newline, _} | r_tokens], level) when level == 0 do - {:ok, [{:markup, "\\\n\\\n"}], r_tokens} + {:ok, [{:markup, "\n\n"}], r_tokens} end defp block_textile_element(_parser, [{:newline, _} | r_tokens], level) when level == 0 do - {:ok, [{:markup, "\\\n"}], r_tokens} + {:ok, [{:markup, "\n"}], r_tokens} end defp block_textile_element(parser, tokens, level) do