escape all newlines

This commit is contained in:
Luna D 2021-09-22 22:20:45 +02:00
parent 8f700c0bed
commit fd867cbbbe
No known key found for this signature in database
GPG key ID: 81AF416F2CC36FC8

View file

@ -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