Skip to content

Commit 6a572fd

Browse files
committed
Add README description of the new window.PlotlyConfig.MathJaxConfig property
1 parent b02ba17 commit 6a572fd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

dist/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ 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+
3649
### To include localization
3750

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

0 commit comments

Comments
 (0)