1
0
mirror of https://tildegit.org/sbgodin/HtmGem.git synced 2023-08-25 13:53:12 +02:00

FIX: adds line feed inside a blockquote

Example:
> line_1
> line_2

Before :
line_1 line_2

After :
Line_1
Line_2
This commit is contained in:
Christophe HENRY 2021-03-21 00:14:55 +01:00
parent 710bd1bf07
commit c1299a2bdb

View File

@ -271,9 +271,11 @@ class GemtextTranslate_html {
echo "<pre>\n$text\n</pre>\n";
break;
case ">":
$text = implode("\n", $node["texts"]);
foreach ($node["texts"] as &$text) {
self::htmlPrepare($text);
if ($textDecoration) self::addTextDecoration($text);
}
$text = implode("<br>\n", $node["texts"]);
echo "<blockquote>\n$text\n</blockquote>\n";
break;
case "=>":