I have an interest in being able to use the set of very powerful javascript-based package called MathJax which provides support for high-quality equation (e.g. mathematics) formatting.
Having read through the documentation and played around a bit I've only found one way to make it work, which feels unsatisfactory.
Essentially I need to load the MathJax libraries via a command like:
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
The current cheating way I have found to do this is merely to add it to the index.html page inside the src directory.
Unfortunately this doesn't actually work since it looks like MathJax runs on the page before all the articles, blocks and components have been loaded and thus doesn't render the equations in the components on the page. So here's for a dirty fix: I load the javascript on a 2000ms Timeout command after window.onload()
(see http://cdn.mathjax.org/mathjax/latest/test/sample-loader.html for an example)
I'm sure there must be a better approach, but I cannot work out what it is (I seem to need to guarantee the MathJax libraries are loaded after they can see all the page content).
If you need a test case, just insert this code: \( x^2 + y^2 \) into your text somewhere and it should render nicely, if you've got MathJax loaded.
PS - From searching there are a number of projects built with bower (not that I understand it) for which MathJax is already used. But I don't understand it well enough to know if the problem has already been fixed at a much higher level, loading some npm/bower/grunt command.