Same use case (math-heavy, no-javascript blog), but I ended up with a _slightly_ different approach: instead of converting to SVG, convert to MathML. Browser support is pretty robust, and the output is much nicer (e.g. preserves fonts).https://sathomas.me/blog/site/
icpmoles|3 months ago
https://fred-wang.github.io/MathFonts/mozilla_mathml_test/
qrios|3 months ago
With Safari (standard and tech preview) the rendering looks strange (at least). The root sign does not have a strait line at the top (for many fonts) and at least the partial derivative is not rendered as italic (for all fonts).
yorwba|3 months ago
bArray|3 months ago
I was also looking at your recent blog [3], and one thing that I like about mine is that the code you see is what is run to produce the output [4]. I am in the middle of making the code interactive too, so that you can re-compile it within the web page and run different parameters to produce different outputs.
[1] https://coffeespace.org.uk/projects/mathml-render.html
[2] https://github.com/pshihn/math-ml
[3] https://sathomas.me/blog/robuststats/
[4] https://coffeespace.org.uk/projects/wavefront-algorithm.html
bobbylarrybobby|3 months ago
randomtoast|3 months ago
This is the way to go.
__rito__|3 months ago
[0]: https://postimg.cc/G8NHRT3w
JadeNB|3 months ago
ttd|3 months ago