Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -392,9 +392,13 @@ |
393 | 393 | } |
394 | 394 | $this->mStripState->general->setPair( $marker, $output ); |
395 | 395 | } |
396 | | - $text = $this->mStripState->unstripGeneral( $text ); |
397 | 396 | } |
398 | 397 | |
| 398 | + # This was originally inserted for transparent tag hooks (now deprecated) |
| 399 | + # but some extensions (notably <poem>) rely on the extra unstripGeneral() |
| 400 | + # after unstripNoWiki() so they can modify the contents of <nowiki> tags. |
| 401 | + $text = $this->mStripState->unstripGeneral( $text ); |
| 402 | + |
399 | 403 | $text = Sanitizer::normalizeCharReferences( $text ); |
400 | 404 | |
401 | 405 | if ( ( $wgUseTidy && $this->mOptions->mTidy ) || $wgAlwaysUseTidy ) { |