Convert LaTeX notation to ready to be embedded Markdown
8holon.github.io
8holon.github.io
Just use Pandoc with good old KaTeX or MathJax. The CDN builds will last way longer than this commercial service, and you have the option of self-hosting everything.
Edit: I didn't see the author's comment here. Apparently it's meant for environments where you aren't allowed to include your own JavaScript. In that case it's probably a good idea to prerender the images and include them alongside if you can.
Congratulations on launching a working project and running it successfully for the past few years. It is always nice to see new projects pertaining to rendering mathematics on the web.
TeXMe does support GitHub Flavored Markdown (GFM)[2] when used in standalone HTML files. It however does not support your use case of rendering equations in GitHub README.md files. If TeXMe seems interesting, I would also request you to take a look at Muboard[4] which is a live, interactive, self-rendering mathematics chalkboard for the web built with TeXMe.[4]
[1] https://github.com/susam/texme
[2] https://github.github.com/gfm
If I hadn't gotten so far along with my conversion, I might have even dropped down to groff/troff and used TeX as an intermediate step.
Going this route, you eventually end up paying more than MSRP, which feels icky.
As to why I didn't start from groff/toff - the original was done in Word, so I tried to keep a similar format and to get there required a few custom classes that would be a real pain to reproduce.
I considered just using HTML with the print media type, but @page was new then, still isn't uniformly supported, and is basically absent in WebKit.
All told, it probably took 2 weeks - asking silly questions on TeX Exchange and tweaking things - before I got something that I was happy with.
Equation:
$$x=\frac{1}{2}$$
Unfortunately there is no common in-browser Math rendering and as the referenced article points out, pictures of equations are not the solution [2]. A common mathematics rendering format is desperately needed but nobody really seems motivated to solve it.My approach is to use MathML that is rendered natively by Firefox and use JS to render in other browsers [3]. MathJax is way too heavy the last time I checked (growing towards 1MB) [4]. Instead I use math-ml, a JS library that is somewhat complete/abandoned but mostly works in about 80kB [5].
My rational for supporting Firefox's approach is that it's the browser I use, MathML is supported by W3C [6], MathML is supported by pandoc and there is a lightweight workaround for other browsers.
[2] https://danilafe.com/blog/math_rendering_is_wrong/
[3] https://coffeespace.org.uk/projects/mathml-render.html
https://github.com/W4RH4WK/Dogx
It contains a Pandoc filter that pulls out the LaTeX code, generates an SVG that gets embedded into the resulting HTML document.