Switch KaTeX to MathJax
See original GitHub issueDescribe your feature request
Mark Text use KaTeX to display math expressions, but KaTeX is too weak to display some complex expressions, such as \ce
。
What problem does this feature solve? [optional]
Displaying some complex expressions.
Additional context [optional]
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Use MathJax instead of KaTeX (#339109) · Issues - GitLab.org
Usability of MathJax is a lot simpler, it works by simply adding the dependency, while KaTeX require some additional configurations.
Read more >Options - KaTeX
You can always manually switch between \displaystyle and \textstyle using those commands. Display mode centers math on its on line and disables automatic ......
Read more >converting KaTeX to MathJax - Stack Overflow
Is there currently any way in javascript to convert a KaTeX formular to MathJax, I want to support exporting to Anki which just...
Read more >Switch to MathJax version 3? - Mathematics Meta
So I was wondering if there is a plan to switch to newer version 3? ... on Meta Stack Exchange: Next math renderer...
Read more >MathJax TeX and LaTeX Support
within such macros (to switch back into math-mode) and \$ to escape. Second, some features in MathJax might be necessarily limited.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Most things can be done with KaTeX, according to the docs carbon bonds are supported.
The only big missing feature is equation numbering, but that’s tricky to do in markdown because the
align
environment shouldn’t be used inside$$
or\[
and last I checkedpandoc
doesn’t inteligently remove$$
where they shouldn’t be used. So if MathJax is used special attention would have to be paid to this like in RMarkDown ororg-mode
where\begin{align}
May de limit a math environment . In order to achieve numbering and alignement in KaTeX there’s thealigned
environment which doesn’t support tags or labels in LaTeX ( but confusingly supports\tags{}
in KaTeX) which can be used with something like\ldots (1)
in order to achieve compatibility with LaTeX throughpandoc
Another thing to consider is speed and portability, Either mathjax would have to be installed locally or a consistent online connection would be required to access the CDN and even then from what I understand it does render slower.
such a switch would need to be done in a way that doesn’t slow everything down and doesn’t break pdf export.
Please keep KaTeX. The output looks better than MathJax and it is faster.