From 29a934b2ba4c49b545895fe1c9c1db2f6aa36b44 Mon Sep 17 00:00:00 2001 From: Mike Kamermans Date: Fri, 19 Feb 2016 09:07:33 -0800 Subject: [PATCH 1/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 60211524..e4c042ac 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # mathjax-node [![Build Status](https://travis-ci.org/mathjax/MathJax-node.svg?branch=develop)](https://travis-ci.org/mathjax/MathJax-node) -This repository contains files that provide APIs to call MathJax from +This repository contains files that provide APIs to call [MathJax](https://github.com/mathjax/mathjax) from node.js programs. There is an API for converting individual math expressions (in any of MathJax's input formats) into SVG images or MathML code, and there is an API for converting HTML snippets containing any of From 117d5b808eda1d5b44f58d470b59a2de724ed5d9 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 21 Feb 2016 21:29:23 +0100 Subject: [PATCH 2/3] Make test for node hierarchy more robust. Resolves issues #172 and #179. --- lib/patch/jsdom.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/patch/jsdom.js b/lib/patch/jsdom.js index 6d28d64b..0bb28a3d 100644 --- a/lib/patch/jsdom.js +++ b/lib/patch/jsdom.js @@ -3,12 +3,8 @@ // between node 4 and node 5, so check which one we have. // -var fs = require('fs'); - -var PARSERS = 'jsdom/node_modules/cssstyle/lib/parsers.js'; // node 4 hierarchy -try {fs.accessSync('node_modules/'+PARSERS, fs.F_OK)} catch (e) { - PARSERS = 'cssstyle/lib/parsers.js'; // node 5 heirarchy -} +var PARSERS = 'jsdom/node_modules/cssstyle/lib/parsers.js'; // node 4 hierarchy +try {require(PARSERS)} catch (e) {PARSERS = 'cssstyle/lib/parsers.js'} // node 5 heirarchy // // Companion to implicitSetter, but for the individual parts. From ca0eb23424334c8cf203e066e8be62b586e4070c Mon Sep 17 00:00:00 2001 From: Peter Krautzberger Date: Mon, 22 Feb 2016 11:03:21 +0100 Subject: [PATCH 3/3] Update package.json Bump version to 0.5.1 for a patch release. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2bf3c873..a58925e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mathjax-node", - "version": "0.5.0", + "version": "0.5.1", "description": "API's for calling MathJax from node.js", "keywords": [ "MathJax",