diff --git a/lib-htmgem.php b/lib-htmgem.php index d888ddd..558dbb1 100644 --- a/lib-htmgem.php +++ b/lib-htmgem.php @@ -271,9 +271,11 @@ class GemtextTranslate_html { echo "
\n$text\n
\n"; break; case ">": - $text = implode("\n", $node["texts"]); - self::htmlPrepare($text); - if ($textDecoration) self::addTextDecoration($text); + foreach ($node["texts"] as &$text) { + self::htmlPrepare($text); + if ($textDecoration) self::addTextDecoration($text); + } + $text = implode("
\n", $node["texts"]); echo "
\n$text\n
\n"; break; case "=>":