Skip to content

Commit 98a04c2

Browse files
committed
Merge pull request mathjax#137 from mathjax/issue136
Update Readme
2 parents c41a269 + bdbef28 commit 98a04c2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ directory for more details.
2525

2626
# Getting started
2727

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.
2929

30-
* `lib/mj-single.js` is optimized for processing single equations.
30+
* `./lib/mj-single.js` is optimized for processing single equations.
3131

3232

3333
```javascript
3434
// a simple TeX-input example
35-
var mjAPI = require("./lib/mj-single.js");
35+
var mjAPI = require("mathjax-node/lib/mj-single.js");
3636
mjAPI.config({
3737
MathJax: {
3838
// traditional MathJax configuration
@@ -52,11 +52,11 @@ mjAPI.typeset({
5252
```
5353

5454

55-
* `lib/mj-page.js` is optimized for handling full HTML pages.
55+
* `./lib/mj-page.js` is optimized for handling full HTML pages.
5656

5757

5858
```javascript
59-
var mjAPI = require("./lib/mj-page.js");
59+
var mjAPI = require("mathjax-node/lib/mj-page.js");
6060
var jsdom = require("jsdom").jsdom;
6161

6262
var document = 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

Comments
 (0)