]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blobdiff - includes/parser/CoreTagHooks.php
MediaWiki 1.17.0
[autoinstalls/mediawiki.git] / includes / parser / CoreTagHooks.php
index 7cc8260eb04c287e277cec7d437f8e5764b502e9..33f3c824e5ed8b422651679e27cd613ccadcd771 100644 (file)
@@ -1,5 +1,14 @@
 <?php
+/**
+ * Tag hooks provided by MediaWiki core
+ *
+ * @file
+ */
 
+/**
+ * Various tag hooks, registered in Parser::firstCallInit()
+ * @ingroup Parser
+ */
 class CoreTagHooks {
        static function register( $parser ) {
                global $wgRawHtml, $wgUseTeX;
@@ -40,7 +49,7 @@ class CoreTagHooks {
 
        static function math( $content, $attributes, $parser ) {
                global $wgContLang;
-               return $wgContLang->armourMath( MathRenderer::renderMath( $content, $attributes ) );
+               return $wgContLang->armourMath( MathRenderer::renderMath( $content, $attributes, $parser->getOptions() ) );
        }
 
        static function gallery( $content, $attributes, $parser ) {