Hacker ApprovedDepartments

KaTeX

Ranked 2 of 3 math rendering libraries by recommenders

Fast, lightweight library for rendering LaTeX math on web pages and server-side, with MathML included for accessibility. Critics say it lacks features for serious mathematical exposition.

Fast, lightweight library for rendering LaTeX math on web pages and server-side, with MathML included for accessibility. Critics say it lacks features for serious mathematical exposition.

17 people gave an opinion

recommend it
11
criticize it
6
approval share
65%
Each figure is one person. RecommendsCriticizes

Recommended in 3 of 13 months

  1. November 2025: recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 11 people recommend itNeeds 10 or more, met.
  • 1.8 recommenders for every criticNeeds 2 to 1 or better, not met.
  • Recommended in 3 of 13 monthsNeeds 4 or more, not met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Fast, lightweight rendering

    “I use KaTeX for my blog, and indeed KaTeX was faster than MathJax 2”

    Comment from 3 Nov 2025 on Hacker News

    “It uses KaTeX for fast rendering and it is lightweight.”

    Comment from 5 Mar 2026 in “Show HN: PyMath Preview – preview LaTeX math in Python docstrings inside VS Code”
  • Good spacing and rendering quality

    “Since KaTeX produces the spacing and rendering quality I am happy with, out of the box, I have continued using it.”

    Comment from 3 Nov 2025 on Hacker News

    “the KaTeX output is consistently better”

    Comment from 8 May 2026 in “RaTeX: KaTeX-compatible LaTeX rendering engine in pure Rust”
  • Easy to integrate into pages

    “KaTeX makes an acceptable (to some) compromise by packaging this stuff up in a form where it can be run server side and is easy to integrate on a simple web page”

    Comment from 3 Nov 2025 on Hacker News

    “It was easy enough to hook into pulldown_cmark, so that $ and $$ and render a decent subset of LaTeX.”

    Comment from 3 Nov 2025 on Hacker News

What people warn about

Each mark is one comment

  • Slow or failing on large documents

    “"Page complete" never stops with either library for me. It just keeps counting milliseconds.”

    Comment from 4 Nov 2025 on Hacker News

    “very unstable, frequently failing at rendering large documents with many equations”

    Comment from 5 Nov 2025 on Hacker News

Other math rendering libraries people recommend

The two most recommended other math rendering libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

KaTeX compared with 2 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
MathJax12475%4—Approved
KaTeXThis page11665%3——
RaTeX9469%1——
See all 3 math rendering libraries, ranked

What people said

19 of the 20 comments that mention it, newest first. Each links to the original comment.

“the KaTeX output is consistently better”

RecommendsComment from 8 May 2026 in “RaTeX: KaTeX-compatible LaTeX rendering engine in pure Rust”

“Why is it so hard to simply render an image from KaTeX?”

CriticizesComment from 8 May 2026 in “RaTeX: KaTeX-compatible LaTeX rendering engine in pure Rust”

“KaTex has accessibility via MathML included”

RecommendsComment from 7 May 2026 in “RaTeX: KaTeX-compatible LaTeX rendering engine in pure Rust”

“KaTeX bundles fonts and assumes they load cleanly”

MixedComment from 7 May 2026 in “RaTeX: KaTeX-compatible LaTeX rendering engine in pure Rust”

“It uses KaTeX for fast rendering and it is lightweight.”

RecommendsComment from 5 Mar 2026 in “Show HN: PyMath Preview – preview LaTeX math in Python docstrings inside VS Code”

“very unstable, frequently failing at rendering large documents with many equations”

CriticizesComment from 5 Nov 2025 on Hacker News

“"Page complete" never stops with either library for me. It just keeps counting milliseconds.”

CriticizesComment from 4 Nov 2025 on Hacker News

“some KaTeX formulas act dead unless you start selecting outside them”

CriticizesComment from 4 Nov 2025 on Hacker News

“We faced many challenges, especially with how different AI models syntax formulas”

MixedComment from 4 Nov 2025 on Hacker News

“Since KaTeX produces the spacing and rendering quality I am happy with, out of the box, I have continued using it.”

RecommendsComment from 3 Nov 2025 on Hacker News

“the feature set, whenever I've looked over the years, doesn't seem geared toward serious mathematical exposition”

CriticizesComment from 3 Nov 2025 on Hacker News

“they get you closer to the typesetting quality of LaTeX compared to MathML”

RecommendsComment from 3 Nov 2025 on Hacker News

“we still need a KaTeX equivalent, which compiles either LaTeX equations or other markup languages to MathML”

MixedComment from 3 Nov 2025 on Hacker News

“So far, it has been working out well.”

RecommendsComment from 3 Nov 2025 on Hacker News

“It was easy enough to hook into pulldown_cmark, so that $ and $$ and render a decent subset of LaTeX.”

RecommendsComment from 3 Nov 2025 on Hacker News

“Every SSG seems to have the problem of having to depend on node in order to prerender html for math with katex”

CriticizesComment from 3 Nov 2025 on Hacker News

“KaTeX makes an acceptable (to some) compromise by packaging this stuff up in a form where it can be run server side and is easy to integrate on a simple web page”

MixedComment from 3 Nov 2025 on Hacker News

“I use KaTeX for my blog, and indeed KaTeX was faster than MathJax 2”

RecommendsComment from 3 Nov 2025 on Hacker News

“You can quickly get 200kB+ pages by pre-rendering.”

CriticizesComment from 3 Nov 2025 on Hacker News

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.