File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 27
27
* limitations under the License.
28
28
*/
29
29
30
- if ( window . MathJax ) { window . MathJax = { AuthorConfig : window . MathJax } } else { window . MathJax = { } }
31
-
32
- // MathJax.isPacked = true; // This line is uncommented by the packer.
33
30
31
+ //
32
+ // Check if browser can support MathJax (no one fails this nowadays)
33
+ //
34
34
if ( document . getElementById && document . childNodes && document . createElement ) {
35
-
36
- if ( ! MathJax . Hub ) { // skip if already loaded
35
+ //
36
+ // Skip if MathJax is already loaded
37
+ //
38
+ if ( ! ( window . MathJax && MathJax . Hub ) ) {
37
39
40
+ //
41
+ // Get author configuration from MathJax variable, if any
42
+ //
43
+ if ( window . MathJax ) { window . MathJax = { AuthorConfig : window . MathJax } }
44
+ else { window . MathJax = { } }
45
+
46
+ // MathJax.isPacked = true; // This line is uncommented by the packer.
47
+
38
48
MathJax . version = "2.3" ;
39
- MathJax . fileversion = "2.3" ;
49
+ MathJax . fileversion = "2.3.1 " ;
40
50
41
51
/**********************************************************/
42
52
You can’t perform that action at this time.
0 commit comments