Showcase: Boosting Docusaurus math rendering performance with 3.5KB native MathML #12122
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.
-
Docusaurus websites are highly customizable and optimized for SEO. However, many documentation sites that render heavy mathematical formulas rely on KaTeX or MathJax. This brings notable overhead:
Why not transition to native MathML?
With universal support for MathML Core in Chromium, WebKit, and Firefox since 2023, Docusaurus can compile math equations directly to standard
<math>tags.We developed @webc.site/math, a 3.5KB TeX-to-MathML compiler:
This makes a perfect plugin alternative for Docusaurus docs to keep page sizes minimal while retaining crisp formula rendering!
Beta Was this translation helpful? Give feedback.
All reactions