Skip to content

Commit 57e32ba

Browse files
committed
Move new MathJax instructions to tasks/stats.js
1 parent 6a572fd commit 57e32ba

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Diff for: dist/README.md

-13
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,6 @@ or the un-minified version as:
3333

3434
You can grab the relevant MathJax files in `./dist/extras/mathjax/`.
3535

36-
By default, plotly.js will modify the global MathJax configuration on load.
37-
This can lead to undesirable behavior if plotly.js is loaded alongside
38-
other libraries that also rely on MathJax. To disable this global configuration
39-
process, set the `MathJaxConfig` property to `'local'` in the `window.PlotlyConfig`
40-
object. This property must be set before the plotly.js script tag, for example:
41-
42-
```html
43-
<script>
44-
window.PlotlyConfig = {MathJaxConfig: 'local'}
45-
</script>
46-
<script src="plotly.min.js"></script>
47-
```
48-
4936
### To include localization
5037

5138
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.

Diff for: tasks/stats.js

+13
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,19 @@ function getInfoContent() {
6565
'',
6666
'You can grab the relevant MathJax files in `./dist/extras/mathjax/`.',
6767
'',
68+
'By default, plotly.js will modify the global MathJax configuration on load.',
69+
'This can lead to undesirable behavior if plotly.js is loaded alongside',
70+
'other libraries that also rely on MathJax. To disable this global configuration',
71+
'process, set the `MathJaxConfig` property to `\'local\'` in the `window.PlotlyConfig`',
72+
'object. This property must be set before the plotly.js script tag, for example:',
73+
'',
74+
'```html',
75+
'<script>',
76+
' window.PlotlyConfig = {MathJaxConfig: \'local\'}',
77+
'</script>',
78+
'<script src="plotly.min.js"></script>',
79+
'```',
80+
'',
6881
'### To include localization',
6982
'',
7083
'Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.',

0 commit comments

Comments
 (0)