Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
These days it's becoming standard for any markdown converter to support katex/mathjax. For instance, markdown-it has markdown-it-katex. Dump your markdown with equations directly inside your html file and have it do the conversion. Or this: https://github.com/susam/texme
As an alternative, something that I've put together in the past for personal notes / documents. It also covers LaTeX (and TIKZ) inside Markdown and leverages Pandoc.
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.
I hosted a small snippet on heroku and am using https://github.com/atishay/tex2svg/ for my personal Hugo website. It is really cheap and easy to do latex to svg.
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.
[1] https://pandoc.org/
[2] https://danilafe.com/blog/math_rendering_is_wrong/
[3] https://coffeespace.org.uk/projects/mathml-render.html
[4] https://www.mathjax.org/
[5] https://github.com/pshihn/math-ml
[6] http://www.w3.org/1998/Math/MathML
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.
[1] https://pandoc.org/
[2] https://danilafe.com/blog/math_rendering_is_wrong/
[3] https://coffeespace.org.uk/projects/mathml-render.html
[4] https://www.mathjax.org/
[5] https://github.com/pshihn/math-ml
[6] http://www.w3.org/1998/Math/MathML
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.
[1] https://pandoc.org/
[2] https://danilafe.com/blog/math_rendering_is_wrong/
[3] https://coffeespace.org.uk/projects/mathml-render.html
[4] https://www.mathjax.org/
[5] https://github.com/pshihn/math-ml
[6] http://www.w3.org/1998/Math/MathML
Related posts
- What software do you use to make documents without resorting to Microsoft word?
- What is the latest MathJax?
- Do I need to learn LaTeX? Are there better options?
- Reasons you aren't updating your personal site (2020)
- I created an application to convert our markdown/text file notes/assignments into latex with one command