Showcase: Boosting Hexo math rendering performance with 3KB native MathML #5783
x-at-01
started this conversation in
Show and tell
Replies: 1 comment
|
Nice! Right now, Hexo does not provide a native built-in Math feature; these kinds of features should be introduced as a Hexo plugin. Currently, we do maintain an official plugin https://github.com/hexojs/hexo-math here. You can also create your own Hexo plugin and submit it to our official website, and share your creation here! |
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.
For bloggers writing math-heavy technical posts with Hexo, equation rendering has always been a heavy burden. Popular Hexo math plugins rely on KaTeX or MathJax, leading to:
Native Browser MathML Core
Modern layout engines natively support MathML Core since early 2023. We can now compile LaTeX equations into native
<math>tags on the server side (during the SSG process), requiring 0 KB of client-side JavaScript for math layout.We developed @webc.site/math, a fast TeX-to-MathML compiler:
We hope this provides the Hexo community with an alternative way to render math equations with maximum page performance!
All reactions