easy-mathjax

0.1.3 • Public • Published

easy-mathjax

Faclitate MathJax usage.

Usage:

// Configure MathJax prior to loading.
// All mathjax-config blocks will also be merged after injection.
 
window.MathJax = {
    tex2jax: {
        inlineMath: [["$","$"]],
        processEscapes: true
    }
};
var easy = new EasyMathJax({
    url: "path/to/mathjax.js"
});
 
easy.inject(function() {
    easy.render(".mathjax-block", function () {
        console.log("All items with class 'mathjax-block' have been rendered");
    });
});

Readme

Keywords

Package Sidebar

Install

npm i easy-mathjax

Weekly Downloads

0

Version

0.1.3

License

Apache v2

Last publish

Collaborators

  • alxarch