A pandoc filter for HTML output that optimizes and inlines SVGs, and adapts them for use with MathJax.