You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,14 +25,14 @@ directory for more details.
25
25
26
26
# Getting started
27
27
28
-
mathjax-node provides two libraries, `lib/mj-single.js` and `lib/mj-page.js`. Below are two very minimal examples -- be sure to check out the examples in `./bin/` for more advanced configurations.
28
+
mathjax-node provides two libraries, `./lib/mj-single.js` and `./lib/mj-page.js`. Below are two very minimal examples -- be sure to check out the examples in `./bin/` for more advanced configurations.
29
29
30
-
*`lib/mj-single.js` is optimized for processing single equations.
30
+
*`./lib/mj-single.js` is optimized for processing single equations.
31
31
32
32
33
33
```javascript
34
34
// a simple TeX-input example
35
-
var mjAPI =require("./lib/mj-single.js");
35
+
var mjAPI =require("mathjax-node/lib/mj-single.js");
36
36
mjAPI.config({
37
37
MathJax: {
38
38
// traditional MathJax configuration
@@ -52,11 +52,11 @@ mjAPI.typeset({
52
52
```
53
53
54
54
55
-
*`lib/mj-page.js` is optimized for handling full HTML pages.
55
+
*`./lib/mj-page.js` is optimized for handling full HTML pages.
56
56
57
57
58
58
```javascript
59
-
var mjAPI =require("./lib/mj-page.js");
59
+
var mjAPI =require("mathjax-node/lib/mj-page.js");
60
60
var jsdom =require("jsdom").jsdom;
61
61
62
62
vardocument=jsdom("<!DOCTYPE html><html lang='en'><head><title>Test</title></head><body><h1>Let's test mj-page</h1> <p> \\[f: X \\to Y\\], where \\( X = 2^{\mathbb{N}}\\) </p></body></html>");
0 commit comments