Physikerwelt has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/331672 )

Change subject: Change chemestry tag name ce->chem
......................................................................

Change chemestry tag name ce->chem

Change name of the tag name from ce to chem.

Bug: T153606
Change-Id: Idef1078b188f2b945c9e1f8f66096779cc37133f
---
M Math.hooks.php
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math 
refs/changes/72/331672/1

diff --git a/Math.hooks.php b/Math.hooks.php
index 8f0ff4a..2950b66 100644
--- a/Math.hooks.php
+++ b/Math.hooks.php
@@ -166,7 +166,9 @@
         */
        static function onParserFirstCallInit( $parser ) {
                $parser->setHook( 'math', [ 'MathHooks', 'mathTagHook' ] );
-               $parser->setHook( 'ce', [ 'MathHooks', 'ceTagHook' ] );
+               // @deprecated the ce tag is deprecated in favour of chem cf. 
T153606
+               $parser->setHook( 'ce', [ 'MathHooks', 'chemTagHook' ] );
+               $parser->setHook( 'chem', [ 'MathHooks', 'chemTagHook' ] );
 
                return true;
        }
@@ -411,7 +413,7 @@
         * @param Parser $parser
         * @return array
         */
-       static function ceTagHook( $content, $attributes, $parser ) {
+       static function chemTagHook( $content, $attributes, $parser ) {
                $attributes['chem'] = true;
                return MathHooks::mathTagHook( '\ce{' . $content . '}', 
$attributes, $parser );
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/331672
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idef1078b188f2b945c9e1f8f66096779cc37133f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <w...@physikerwelt.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to