# mathjax/mathjax-v3

A repository for early stages of MathJax v3
Switch branches/tags
Nothing to show
Latest commit 1217503 Oct 16, 2018
 Failed to load latest commit information. attic Sep 21, 2017 doc Oct 16, 2018 lib Sep 22, 2018 mathjax2 Sep 21, 2018 mathjax3-ts Oct 16, 2018 samples Jun 13, 2018 tests Oct 16, 2018 tools Oct 17, 2017 .gitignore Jul 27, 2017 Mml-lab.html Mar 5, 2018 README.md Jun 9, 2018 TeX-lab.html May 15, 2018 load.html Mar 28, 2018 load.js Jul 27, 2017 load.mjs May 14, 2018 main.js May 14, 2018 package-lock.json May 14, 2018 package.json May 14, 2018 tests.sh Oct 16, 2018 tex_interactive.js Aug 11, 2017 tsconfig.json Jul 27, 2017 tslint.json Aug 9, 2017

# Development repository for MathJax v3

MathJax v3 is now in beta release; see the beta branch for details. See the https://github.com/mathjax/mj3-demos for examples and webpacked files for the beta release.

The master branch is not the beta release. It is the current development copy, set up for development testing, as described below.

There are two bootstrap files for running the code:

• load.js for running in node (node load), and
• load.html for running in a browser.

These allow you to specify a test file to run. For example,

node load samples/filename.js


will run the file samples/filename.js, while entering

load.html?samples/filename.js


in your browser will run the same file in your browser. If you leave off the file to load, then it defaults to main.js.

Additional arguments get passed to the script in the process.argv array. For example

node load samples/tex2html.js 'x+1'


or

load.html?samples/tex2html.js&x+1


would load tex2html.js passing it x+1 in process.argv[3].

Both load.js and load.html use System.js to manage the loading of version 3 files. In some browsers (e.g., Firefox), you get syntax errors for the files as they load, but that seems to be some side-effect of how System.js works. The code is OK and runs properly anyway.

There is a tiny document in the docs directory that gives the basic structures and some sample code, but it is woefully inadequate at the moment, and may be out of date. More to come later.