MathJax-src
markdown-it-texmath
Our great sponsors
MathJax-src | markdown-it-texmath | |
---|---|---|
5 | 2 | |
1,952 | 146 | |
1.5% | - | |
0.0 | 1.9 | |
5 days ago | 29 days ago | |
TypeScript | HTML | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
MathJax-src
- MathJax v4.0.0-Alpha.1
-
What is the latest MathJax?
I am using MathJax from Emacs org-mode and it is grabbing MJ 3 from https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js In Emacs I supposedly have configuration options to get, for example, the LaTeX Euler font -- or a few others. But it doesn't seem to work. I inspect my web page output and I see a CSS class MJX-TEX, and it's CSS breakdown is .MJX-TEX { font-family: MJXZERO, MJXTEX; } Good. I think I can simply go into my own CSS and change something with the font family. But I wouldn't know what to. I found this code where it seems to have a long list of "font families" but I have no idea what they are or how to change the above CSS font-family tag. I read that 3 doesn't allow changing fonts. Is that still true? Any knowledge on how to handle/change fonts appreciated.
-
Math on GitHub: The Good, the Bad and the Ugly
One thing that the article gets wrong is accusing mathjax of being abandoned. Development has moved to a new repo for the next version.
https://github.com/mathjax/MathJax-src/graphs/contributors
- I created a (Linux) script to easily type Unicode math everywhere.
-
Centering text in obsidian
Obsidian uses MathJax for their LaTeX integration, so it will auto center without using any of the formatting syntax. You only need to put in your equations and it will format automatically.
markdown-it-texmath
-
Math on GitHub: Following Up
Github's implementation is really lazy. There are many much better approaches to precisely this problem. E.g., Jupyter notebooks implement one that has matured in the wild over a decade. There's this very flexible markdown-it plugin that implements anther https://github.com/goessner/markdown-it-texmath, and my version of it here https://github.com/sagemathinc/cocalc/blob/master/src/packag... which I rewrote in typescript with a focus on the same semantics as Jupyter has, but for CoCalc, and I've been working on using unifiedjs to provide more general latex for Markdown (not just formulas) here https://github.com/sagemathinc/cocalc/pull/5982 Parsing math is much easier if you use a plugin to an existing markdown parser, rather than trying to do some hack outside of that (which is what Github probably does, and also what Jupyter does).
-
Math on GitHub: The Good, the Bad and the Ugly
If you use a proper markdown plugin to parse math instead (such as https://github.com/goessner/markdown-it-texmath), then the problems pointed out in this blog post go away.
What are some alternatives?
marktext - 📝A simple and elegant markdown editor, available for Linux, macOS and Windows.
KeenWrite - Free, open-source, cross-platform desktop Markdown text editor with live preview, string interpolation, and math.
latex-input - Enter Unicode characters using LaTeX notation
Franklin.jl - (yet another) static site generator. Simple, customisable, fast, maths with KaTeX, code evaluation, optional pre-rendering, in Julia.
jupyter-renderers - Renderers and renderer extensions for JupyterLab
cocalc - CoCalc: Collaborative Calculation in the Cloud
espanso-mega-pack - A collection of curated home built packages for the cross-platform text expander Espanso
pandoc - Universal markup converter
ibus - Intelligent Input Bus for Linux/Unix
personal-site - A personal site about software development
MathJax - Beautiful and accessible math in all browsers
kroki - Creates diagrams from textual descriptions!