Skip to content

Commit f3f9424

Browse files
committed
update readme on mathjax v3
1 parent f0f283d commit f3f9424

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,19 @@ While non-minified source files may contain characters outside UTF-8, it is reco
8787

8888
> Please note that as of v2 the "plotly-latest" outputs (e.g. https://cdn.plot.ly/plotly-latest.min.js) will no longer be updated on the CDN, and will stay at the last v1 patch v1.58.5. Therefore, to use the CDN with plotly.js v2 and higher, you must specify an exact plotly.js version.
8989
90-
To support MathJax, you need to load version two of MathJax e.g. `v2.7.5` files from CDN or npm.
90+
To support MathJax, you could load version two or three of MathJax e.g. `v2.7.5` files from CDN or npm.
9191
```html
9292
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG.js"></script>
9393
```
9494

95+
```html
96+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/es5/tex-svg.js"></script>
97+
```
98+
99+
> When using MathJax version 3, it is also possibly to use `chtml` output on the other parts of the page in addition to `svg` output for the plotly graph.
100+
Please refer to `devtools/test_dashboard/index-mathjax3chtml.html` to see an example.
101+
102+
95103
## Bundles
96104
There are two kinds of plotly.js bundles:
97105
1. Complete and partial official bundles that are distributed to `npm` and the `CDN`, described in [the dist README](https://github.com/plotly/plotly.js/blob/master/dist/README.md).

0 commit comments

Comments
 (0)