resolves #492 added math blocks & inline macros, integrated with MathJax