KaTeX – 最快的网页数学排版库
KaTeX – The fastest math typesetting library for the web

原始链接: https://katex.org/

简单 API,无依赖 – 但在所有主流浏览器上速度极快。快速:KaTeX 同步渲染数学公式,无需重排页面。印刷质量:KaTeX 的排版基于 Donald Knuth 的 TeX,这是数学排版的黄金标准。自包含:KaTeX 没有依赖,可以轻松地与您的网站资源捆绑在一起。服务器端渲染:KaTeX 无论在哪个浏览器或环境中都能产生相同的输出,因此您可以使用 Node.js 预渲染表达式并将其作为纯 HTML 发送。即使在包含数百个公式的页面上,速度也极快。

Hacker News 新闻 | 过去 | 评论 | 提问 | 展示 | 工作 | 提交 登录 KaTeX – 网页上最快的数学排版库 (katex.org) 10 分,作者 suioir 2 小时前 | 隐藏 | 过去 | 收藏 | 2 条评论 suioir 2 小时前 [–] 一位评论者在另一篇 HN 帖子 [0] 中留下了这个,我认为值得单独发帖。[0] https://news.ycombinator.com/item?id=45701400 回复 joppy 8 分钟前 | 父评论 [–] 评论者说预渲染/服务器端渲染的数学公式(通过 katex)很棒 - 我发现正好相反。如果你有一篇文章只有一两个公式,它可能很好。另一方面,如果你的文章广泛使用数学公式,比如许多纯数学文章,那么在客户端渲染数学公式会更快地变得更节省空间。预渲染会很快得到 200kB+ 的页面。回复 考虑申请 YC 的 2026 年冬季批次!申请截止日期为 11 月 10 日 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系方式 搜索:
相关文章

原文

Simple API, no dependencies – yet superfast on all major browsers.

  • Fast: KaTeX renders its math synchronously and doesn’t need to reflow the page.
  • Print quality: KaTeX’s layout is based on Donald Knuth’s TeX, the gold standard for math typesetting.
  • Self-contained: KaTeX has no dependencies and can easily be bundled with your website resources.
  • Server side rendering: KaTeX produces the same output regardless of browser or environment, so you can pre-render expressions using Node.js and send them as plain HTML.

Lightning-fast, even on pages with hundreds of expressions:

联系我们 contact @ memedata.com