1. 輕量級,使用 math-css ,開源地址:https://github.com/parsegon/math-css
該方案使用純 div+ 一些行內元素 的方式,通過提供的樣式表文件渲染顯示。這個用了下,感覺不咋好用,可能沒研究深入。
2. 輕量級(官方推薦),使用 mathml,開源地址:https://github.com/fred-wang/mathml.css
有關 mathml,詳細瞭解:https://developer.mozilla.org/zh-CN/docs/Web/MathML
失敗的 mathml : https://www.oschina.net/translate/mathml-is-a-failed-web-standard
mathml 本是 html 標籤規範標準, 但是IE,谷歌等瀏覽器不支持,只有火狐 支持。
3. 重量級,使用 mathjax ,開源地址:https://github.com/mathjax/MathJax
官網:https://www.mathjax.org
複雜的,要求渲染效果好的,可以使用該方案。