}
$text = $this->replaceExternalLinks( $text );
+ $text = $this->doBlockLevels( $text, $linestart );
$text = $this->doTokenizedParser ( $text );
$text = $this->doTableStuff ( $text ) ;
"/<\\/center *>/i" => '</span>'
);
$text = preg_replace( array_keys($fixtags), array_values($fixtags), $text );
- $text = $this->doBlockLevels( $text, $linestart );
+
$text .= $this->categoryMagic () ;
wfProfileOut( $fname );
$text .= "<" . $newSection . ">";
$this->mLastSection = $newSection;
} else if ( $this->mLastSection == 'p' and '' == $oLine) {
- $text .= '<br />';
+ $text .= '<p>';
}
} else if ( $this->mLastSection == $newSection and $newSection != 'p' ) {
$text .= $this->closeParagraph();