Skip to content

Commit 43b33e7

Browse files
committed
add info about MathJax
1 parent 7b8510f commit 43b33e7

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

Diff for: dist/README.md

+21-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
1-
1+
# Using distributed files
22

33
Import plotly.js as:
44

5-
```js
5+
```html
66
<script type="text/javascript" src="plotly.min.js"></script>
77

88
```
99

10-
To support IE9, import plotly.js as:
10+
or the un-minified version as:
11+
12+
```html
13+
<script type="text/javascript" src="plotly.js" charset="utf-8"></script>
14+
```
15+
16+
To support IE9, put:
1117

12-
```js
18+
```html
1319
<script>if(typeof window.Int16Array !== 'function')document.write("<scri"+"pt src='extras/typedarray.min.js'></scr"+"ipt>");</script>
14-
<script type="text/javascript" src="plotly.min.js"></script>
1520
```
21+
22+
before the plotly.js script tag.
23+
24+
25+
To add MathJax, put
26+
27+
```html
28+
<script type="text/javascript" src="mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
29+
```
30+
31+
before the plotly.js script tag. You can grab the relevant MathJax files in `./dist/extras/mathjax/`.

0 commit comments

Comments
 (0)