Index: trunk/extensions/Math/modules/ext.math.mathjax.enabler.js |
— | — | @@ -24,22 +24,18 @@ |
25 | 25 | //if ( typeof(mathJax.fontDir) !== "undefined" ) MathJax.OutputJax.fontDir = mathJax.fontDir; else MathJax.Hub.Config({ NativeMML: {webFont: null} }); |
26 | 26 | MathJax.OutputJax.fontDir = mathJax.fontDir = mediaWiki.config.get('wgExtensionAssetsPath') + '/Math/modules/MathJax/fonts'; |
27 | 27 | MathJax.Hub.Register.StartupHook("End Extensions", function() { |
28 | | - /* |
29 | | - // this section is newly commented out while updating to MJ 2.0 |
30 | 28 | var TEX = MathJax.InputJax.TeX; |
31 | 29 | var MACROS = TEX.config.Macros; |
32 | 30 | for (var id in MACROS) { |
33 | 31 | if (typeof(MACROS[id]) === "string") TEX.Macro(id, MACROS[id]); |
34 | 32 | else TEX.Macro(id, MACROS[id][0], MACROS[id][1]); |
35 | 33 | } |
36 | | - */ |
37 | | - // this next section was already commented out |
38 | | -/* TEX.Parse.Augment({ |
| 34 | + TEX.Parse.Augment({ |
39 | 35 | Cr: function(name) { |
40 | 36 | this.GetBrackets(name); |
41 | 37 | this.Push(TEX.Stack.Item.cell().With({isCR: true, name: name})); |
42 | 38 | } |
43 | | - });*/ |
| 39 | + }); |
44 | 40 | }); |
45 | 41 | MathJax.Hub.Startup.onload(); |
46 | 42 | } |