}
$text = $this->replaceExternalLinks( $text );
- $text = $this->doBlockLevels( $text, $linestart );
$text = $this->doTokenizedParser ( $text );
+
$text = $this->doTableStuff ( $text ) ;
$text = $this->formatHeadings( $text );
);
$text = preg_replace( array_keys($fixtags), array_values($fixtags), $text );
+ # needs to be called last
+ $text = $this->doBlockLevels( $text, $linestart );
$text .= $this->categoryMagic () ;
wfProfileOut( $fname );
$txt = $lastToken["text"] . $txt;
} else {
$txt = $lastToken["type"] . $txt;
- }
+ }
}
$s .= $txt;
}
}
if ( 0 == $npl ) { # No prefix--go to paragraph mode
$uniq_prefix = UNIQ_PREFIX;
+ $inBlockElem=false;
if ( preg_match(
"/(<table|<blockquote|<h1|<h2|<h3|<h4|<h5|<h6|<div)/i", $t ) ) {
$text .= $this->closeParagraph();
$text .= $this->closeParagraph();
$inBlockElem = false;
}
- if ( ! $inBlockElem ) {
+ if ( !$inBlockElem ) {
if ( " " == $t{0} ) {
$newSection = "pre";
$text .= $this->closeParagraph();
/* private */ function formatHeadings( $text )
{
+ return $text;
$doNumberHeadings = $this->mOptions->getNumberHeadings();
$doShowToc = $this->mOptions->getShowToc();
if( !$this->mTitle->userCanEdit() ) {