0.1.3 • Published 10 years ago
easy-mathjax v0.1.3
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");
});
});