mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
preserve textile newlines
This commit is contained in:
parent
a603961a8a
commit
8ec16757e4
1 changed files with 3 additions and 2 deletions
|
@ -509,13 +509,14 @@ defmodule Philomena.Textile.ParserMarkdown do
|
||||||
{:ok, [{:markup, "\n" <> String.duplicate("> ", level)}], r_tokens}
|
{:ok, [{:markup, "\n" <> String.duplicate("> ", level)}], r_tokens}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
defp block_textile_element(_parser, [{:double_newline, _} | r_tokens], level)
|
defp block_textile_element(_parser, [{:double_newline, _} | r_tokens], level)
|
||||||
when level == 0 do
|
when level == 0 do
|
||||||
{:ok, [{:markup, "\n\n"}], r_tokens}
|
{:ok, [{:markup, "\n\u00a0\n"}], r_tokens}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp block_textile_element(_parser, [{:newline, _} | r_tokens], level) when level == 0 do
|
defp block_textile_element(_parser, [{:newline, _} | r_tokens], level) when level == 0 do
|
||||||
{:ok, [{:markup, "\n"}], r_tokens}
|
{:ok, [{:markup, "\u00a0\n"}], r_tokens}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp block_textile_element(parser, tokens, level) do
|
defp block_textile_element(parser, tokens, level) do
|
||||||
|
|
Loading…
Reference in a new issue