File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 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
44node.js programs. There is an API for converting individual math
55expressions (in any of MathJax's input formats) into SVG images or MathML
66code, and there is an API for converting HTML snippets containing any of
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments