Skip to content

Commit fadac71

Browse files
committed
place mathjax note close to cdn
1 parent 866ca5a commit fadac71

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ While non-minified source files may contain characters outside UTF-8, it is reco
8484

8585
> 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.4. Therefore, to use the CDN with plotly.js v2 and higher, you must specify an exact plotly.js version.
8686
87+
### To support MathJax
88+
Load relevant MathJax (v2) files *Before* the plotly.js script tag:
89+
```html
90+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG.js"></script>
91+
<script src="https://cdn.plot.ly/plotly-2.0.0-rc.2.min.js"></script>
92+
```
93+
8794
## Partial bundles
8895

8996
There are two kinds of plotly.js partial bundles:
@@ -145,13 +152,6 @@ Official plotly.js documentation is hosted at [https://plotly.com/javascript](ht
145152
These pages are generated by the Plotly [graphing-library-docs repo](https://github.com/plotly/graphing-library-docs) built with [Jekyll](https://jekyllrb.com/) and publicly hosted on GitHub Pages.
146153
For more info about contributing to Plotly documentation, please read through [contributing guidelines](https://github.com/plotly/graphing-library-docs/blob/master/README.md).
147154

148-
### To support MathJax
149-
Load relevant MathJax (v2) files *Before* the plotly.js script tag:
150-
```html
151-
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG.js"></script>
152-
<script src="https://cdn.plot.ly/plotly-2.0.0-rc.2.min.js"></script>
153-
```
154-
155155
---
156156
## Bugs and feature requests
157157

0 commit comments

Comments
 (0)