diff -r 604213a07ce0 -r b19a9bcb6a45 includes/wikiengine/render_xhtml.php --- a/includes/wikiengine/render_xhtml.php Tue Aug 04 15:02:00 2009 -0400 +++ b/includes/wikiengine/render_xhtml.php Tue Aug 04 15:02:54 2009 -0400 @@ -21,7 +21,7 @@ 'italic' => '\\1', 'underline' => '\\1', 'externalwithtext' => '\\2', - 'externalnotext' => '\\1', + 'externalnotext' => '\\1' ); public function heading($text, $pieces) @@ -60,7 +60,7 @@ $itag = 'dd'; break; } - $list = "<$btag>\n"; + $list = "<_paragraph_bypass><$btag>\n"; $spacing = ''; $depth = 1; foreach ( $piece['items'] as $j => $item ) @@ -108,12 +108,21 @@ $spacing = substr($spacing, 4); $depth--; } - $list .= "$btag>\n"; + $list .= "$btag>\n"; $text = str_replace(Carpenter::generate_token($i), $list, $text); } return $text; } + public function blockquote($text, $pieces) + { + foreach ( $pieces as $i => $piece ) + { + $text = str_replace(Carpenter::generate_token($i), "
\n" . nl2br($piece) . "\n\n", $text); + } + return $text; + } + public function paragraph($text, $pieces) { foreach ( $pieces as $i => $piece )