A metalsmith plugin to prerender mathematical equations
I recently used MathJax for the first time to dynamically render equations in a post using the LaTeX format. The MathJax documentation recommends loading the script that converts the LaTeX format to beautifully formated math equations asynchronously. It works great, but there's typically a lag where a user sees the raw, ugly LaTeX for about a second before it gets rendered.
For example, users would momentarily see this:
Before it was rendered as:
The plugin uses jsdom, which for me is throwing some non-fatal errors during the build. Right now it's a zero-config plugin, but happy to take suggestions for improvement.