vscode-hackmd
vscode-hackmd copied to clipboard
MathJax integration
Replace Katex with MathJax for matching our online version.
This is really important.
Also it would be great if the Extension will be single extension instead of installing many other extensions.
MathJax just released its latest version 3.0. With a complete rewrite of modern tooling (and even TypeScript), it should be easier to bundle using webpack now :)
https://github.com/mathjax/MathJax-src
Any chance to support AsciiMath along with LaTeX? MathJax supports it. and AsciiMath is far, far easier to write, and much shorter, too.
Just to make a point, see the difference between TeX and asciiMath with these examples:
- Cauchy-Schwarz Inequality, this is terrific:
- TeX:
\[ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \]
- asciiMath:
(sum_(k=1)^n a_kb_k)^2 <= (sum_(k=1)^n a_k^2) (sum_(k=1)^n b_k^2)
- TeX:
- Lorenz:
- TeX:
\dot{x} = \sigma(y-x) \\ \dot{y} = \rho x - y - xz \\ \dot{z} = -\beta z + xy
- asciiMath
dotx = sigma(y-x)
\doty = rho x-y - xz
\dotz = -beta z + xy
- TeX:
- Probability:
- TeX:
\[P(E) = {n \choose k} p^k (1-p)^{ n-k } \]
- asciiMath:
P(E) = ((n),(k)) p^k (1-p)^(n-k)
- TeX:
- And, of course, the quadratic formula:
- TeX:
-b \pm \sqrt{b^2 - 4ac} \over 2a
- asciiMath
x=-b+- sqrt(b^2-4ac)/2a
- TeX: