question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Switch KaTeX to MathJax

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
RyanGreenupcommented, Jan 28, 2020

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 checked pandoc 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 or org-mode where \begin{align} May de limit a math environment . In order to achieve numbering and alignement in KaTeX there’s the aligned 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 through pandoc

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.

1reaction
blszcommented, Apr 17, 2020

Please keep KaTeX. The output looks better than MathJax and it is faster.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found