Skip to content

Commit e65718e

Browse files
authored
Merge pull request #5514 from plotly/mathjax-config
No longer inject MathJax config by default
2 parents e6e2443 + 462d14b commit e65718e

File tree

3 files changed

+2
-26
lines changed

3 files changed

+2
-26
lines changed

src/core.js

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ require('native-promise-only');
88
// inject plot css
99
require('../build/plotcss');
1010

11-
// inject default MathJax config
12-
require('./fonts/mathjax_config')();
13-
1411
// include registry module and expose register method
1512
var Registry = require('./registry');
1613
var register = exports.register = Registry.register;

src/fonts/mathjax_config.js

-21
This file was deleted.

test/jasmine/bundle_tests/mathjax_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ describe('Test MathJax:', function() {
1111
// N.B. we have to load MathJax "dynamically" as Karam
1212
// does not undefined the MathJax's `?config=` parameter.
1313
//
14-
// Eventually, it might be nice to move these tests in the "regular" test
14+
// Now with the mathjax_config no longer needed,
15+
// it might be nice to move these tests in the "regular" test
1516
// suites, but to do that we'll need to find a way to remove MathJax from
1617
// page without breaking things downstream.
1718
beforeAll(function(done) {
1819
mathJaxScriptTag = document.createElement('script');
1920
mathJaxScriptTag.type = 'text/javascript';
2021
mathJaxScriptTag.onload = function() {
21-
require('@src/fonts/mathjax_config')();
2222
done();
2323
};
2424
mathJaxScriptTag.onerror = function() {

0 commit comments

Comments
 (0)