* Added a feature to allow per-article process pool size control for the parsing
task, to limit resource usage when the cache for a heavily-viewed article is
invalidated. Requires an external daemon.
-* Leading > is now syntax for <blockquote>.
* (bug 19576) Moved the id attribues from the anchors accompanying section
headers to the <span class="mw-headline"> elements within the section headers,
removing the redundant anchor elements.
elseif ( ';' === $char ) {
$result .= '<dl><dt>';
$this->mDTopen = true;
- } elseif ( '>' === $char ) { $result .= "<blockquote><p>"; }
+ }
else { $result = '<!-- ERR 1 -->'; }
return $result;
/* private */ function nextItem( $char ) {
if ( '*' === $char || '#' === $char ) { return '</li><li>'; }
- elseif ( '>' === $char ) { return "</p><p>"; }
elseif ( ':' === $char || ';' === $char ) {
$close = '</dd>';
if ( $this->mDTopen ) { $close = '</dt>'; }
/* private */ function closeList( $char ) {
if ( '*' === $char ) { $text = '</li></ul>'; }
elseif ( '#' === $char ) { $text = '</li></ol>'; }
- elseif ( '>' === $char ) { $text = "</p></blockquote>"; }
elseif ( ':' === $char ) {
if ( $this->mDTopen ) {
$this->mDTopen = false;
// # = ol
// ; = dt
// : = dd
- // > = blockquote
$lastPrefixLength = strlen( $lastPrefix );
$preCloseMatch = preg_match('/<\\/pre/i', $oLine );
$preOpenMatch = preg_match('/<pre/i', $oLine );
-
- // Need to decode > --> > for blockquote syntax. Re-encode later.
- // To avoid collision with real >s, we temporarily convert them to >
- // This is a weird choice of armouring, but it's totally resistant to any
- // collision.
- $orig = $oLine;
- $oLine = strtr( $oLine, array( '>' => '>', '>' => '>' ) );
-
// If not in a <pre> element, scan for and figure out what prefixes are there.
if ( !$this->mInPre ) {
# Multiple prefixes may abut each other for nested lists.
- $prefixLength = strspn( $oLine, '*#:;>' );
+ $prefixLength = strspn( $oLine, '*#:;' );
$prefix = substr( $oLine, 0, $prefixLength );
# eh?
$prefix = $prefix2 = '';
$t = $oLine;
}
-
- // Re-encode >s now
- $t = strtr( $t, array( '>' => '>', '>' => '>' ) );
# List generation
if( $prefixLength && $lastPrefix === $prefix2 ) {