Get the latest tech news

Using eqn for static website equation generation


Website Equation Formatting Last year, I began the process of writing a static site generator to replace Hugo for my personal website. One major goal of this process was to remove all Javascript [1].

While MathML Core is pretty well supported in mainstream web browsers at this point, using it would prevent my equations from rendering properly in oddball ones like netsurf or mothra. It uses a bodged together pipeline of programs to convert the postscript output of groff into a usable SVG file, which gets numbered and dumped into a sub-directory under the page being generated. The unicode support within groff and its preprocessors isn't great, and running the entire HTML document through this pipeline can result in some characters getting garbled when they are read and then rewritten.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of eqn

eqn