Skip to content

Commit 83e67a2

Browse files
committed
Merge pull request mathjax#183 from mathjax/develop
Merge develop into master for v0.5.1 release
2 parents f3f9342 + ca0eb23 commit 83e67a2

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# mathjax-node [![Build Status](https://travis-ci.org/mathjax/MathJax-node.svg?branch=develop)](https://travis-ci.org/mathjax/MathJax-node)
22

3-
This repository contains files that provide APIs to call MathJax from
3+
This repository contains files that provide APIs to call [MathJax](https://github.com/mathjax/mathjax) from
44
node.js programs. There is an API for converting individual math
55
expressions (in any of MathJax's input formats) into SVG images or MathML
66
code, and there is an API for converting HTML snippets containing any of

lib/patch/jsdom.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33
// between node 4 and node 5, so check which one we have.
44
//
55

6-
var fs = require('fs');
7-
8-
var PARSERS = 'jsdom/node_modules/cssstyle/lib/parsers.js'; // node 4 hierarchy
9-
try {fs.accessSync('node_modules/'+PARSERS, fs.F_OK)} catch (e) {
10-
PARSERS = 'cssstyle/lib/parsers.js'; // node 5 heirarchy
11-
}
6+
var PARSERS = 'jsdom/node_modules/cssstyle/lib/parsers.js'; // node 4 hierarchy
7+
try {require(PARSERS)} catch (e) {PARSERS = 'cssstyle/lib/parsers.js'} // node 5 heirarchy
128

139
//
1410
// Companion to implicitSetter, but for the individual parts.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mathjax-node",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "API's for calling MathJax from node.js",
55
"keywords": [
66
"MathJax",

0 commit comments

Comments
 (0)