From fd867cbbbebb2fc58523775e0ce04737069f21db Mon Sep 17 00:00:00 2001 From: Luna D Date: Wed, 22 Sep 2021 22:20:45 +0200 Subject: [PATCH] escape all newlines --- lib/philomena/textile/parser_markdown.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/textile/parser_markdown.ex b/lib/philomena/textile/parser_markdown.ex index 1ba774cc..a75290b0 100644 --- a/lib/philomena/textile/parser_markdown.ex +++ b/lib/philomena/textile/parser_markdown.ex @@ -511,7 +511,7 @@ 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