Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -3282,8 +3282,11 @@ |
3283 | 3283 | $output = Xml::escapeTagsOnly( $content ); |
3284 | 3284 | break; |
3285 | 3285 | case 'math': |
3286 | | - $output = $wgContLang->armourMath( |
3287 | | - MathRenderer::renderMath( $content, $attributes ) ); |
| 3286 | + if ( $this->mOptions->getUseTeX() ) { |
| 3287 | + $output = $wgContLang->armourMath( |
| 3288 | + MathRenderer::renderMath( $content, $attributes ) ); |
| 3289 | + } |
| 3290 | + /* else let a tag hook handle it (bug 21222) */ |
3288 | 3291 | break; |
3289 | 3292 | case 'gallery': |
3290 | 3293 | $output = $this->renderImageGallery( $content, $attributes ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -254,6 +254,8 @@ |
255 | 255 | reuploading. |
256 | 256 | * Added $wgRateLimitsExcludedIPs, to allow specific IPs to be whitelisted from |
257 | 257 | rate limits. |
| 258 | +* (bug 21222) When $wgUseTeX is not enabled, <math> is no longer registered with |
| 259 | + the parser so extensions are free to implement their own <math> tag |
258 | 260 | |
259 | 261 | === Bug fixes in 1.16 === |
260 | 262 | |