Showcase: Native MathML formula rendering for VitePress docs using a 3.5KB compiler #5212
x-at-01
started this conversation in
Show and tell
Replies: 1 comment
|
This is great! It took 2 minutes to add your plugin, and the output is perfect for my use-case. You should definitely add a PR to make this the default math plugin for VitePress. (And maybe add a license to the github repo? I assume from the npm page that it's Mulan PSL?) |
0 replies
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.
VitePress is widely appreciated for its speed, minimal client-side bundles, and excellent developer experience. For developers building math-heavy documentation, relying on KaTeX or MathJax introduces huge bundles (up to hundreds of kilobytes of JS/CSS) which conflicts with VitePress's philosophy of keeping site page sizes tiny and loading fast.
A Modern Alternative: Native MathML
With the universal adoption of MathML Core in modern browsers, we can shift the heavy layout rendering work to the browser's native C++ engine.
We created @webc.site/math, a super lightweight TeX-to-MathML compiler:
<math>tags, resulting in almost zero JS overhead for your site visitors.We believe this project aligns perfectly with VitePress's focus on performance and minimal page overhead.
All reactions