Repository navigation
Proposal: Lightweight, ultra-fast slide formula rendering using 3.5KB native MathML #2623
x-at-01
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Slidev is a fantastic presentation tool for developers. However, when rendering mathematical formulas, it primarily relies on KaTeX or MathJax. This introduces a couple of performance bottlenecks:
A Modern Approach: Native Browser MathML
Since 2023, all major web engines (Chromium, WebKit, Gecko) have fully supported the MathML Core specification natively. Instead of bundling a heavy layout engine inside slides, we can compile LaTeX to native
<math>elements, delegating layout calculations directly to the browser's C++ rendering engine.To solve this, we created @webc.site/math:
We believe introducing a MathML renderer option would fit Slidev's goal of high performance and instant slide compilation!
All reactions