MathJax – Beautiful and accessible math in all browsers

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
  1. MathJax

    Beautiful and accessible math in all browsers

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. Temml

    TeX-to-MathML conversion library in JavaScript

    There's also Temml (a lightweight fork of KaTex).

    https://github.com/ronkok/Temml

  4. ascii-tables

    ⚡ Quickly format table in ASCII. Great for code comments, or Github Markdown!

  5. UnicodeMathML

    JavaScript-based translation of UnicodeMath to MathML that can be integrated into arbitrary HTML or Markdeep documents. An interactive "playground" allows for experimentation with the syntax and insight into the translation pipeline.

    Both ± and √ have been on Mac keyboards, if you hold down the Option key, since probably 1984. Using ² instead of ^2 doesn't give me the same output, though.

    A Typst Unicoderator could make this transformation for you, but I don't think one's been written yet. An automatic linebreaker à la Prettier sounds like an even more difficult challenge.

    There's UnicodeMath, defined at <https://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v3.2....> and <https://unicodemath.org> says there's a UnicodeMath to MathML converter at <https://github.com/MurrayIII/UnicodeMathML/tree/main>. All UnicodeMath seems to get you over Typst in this instance is superscript support.

  6. latex-to-html

    If you're going to send out math as SVGs anyway, you can also just use your normal latex to PDF renderer (e.g. pdflatex) on each formula, and then convert the output PDFs to SVGs. That way, you get the same output you'd get with latex, and you can also use latex packages that aren't supported by MathJax (e.g. tikz-cd). I've prototyped a latex to html converter [1] based on that approach, but it's probably not ready for serious use. Here's an example: https://www.mbid.me/lcc-model/

    [1] https://github.com/mbid/latex-to-html

  7. Mastodon

    Your self-hosted, globally interconnected microblogging community

    Mathstodon ( https://mathstodon.xyz/about ) integrates this, forking/extending Mastodon to support inline LaTeX in Mastodon posts and equations, which get rendered by MathJax on the client side. I think that's neat.

    - "This is important, since several math-based instances exist (such as https://mathstodon.xyz ,https://types.pl) and produce math-based posts. However, when these posts federate to other instances they cannot be rendered, since other instances do not have MathJAX installed. Thus, a more portable version based on open standards is necessary."

    https://github.com/mastodon/mastodon/issues/19806

  8. KaTeX

    Fast math typesetting for the web.

    > Could you elaborate on why you switched away from it?

    I started using KaTeX sometime after 2015 because it promised to be fast (the fastest! [1]). I had to change the representation of a bunch of expressions because KaTeX didn't support some environments, whilst MathJax did. It was a trade-off I was willing to accept at the time.

    Many years later, I started writing a personal static-site generator. I wanted comparatively lightweight pages, so rendering server-side was an option. I re-evaluated MathJax vs KaTeX again and this time I leaned towards MathJax, as speed was no longer an issue for me. It looks like KaTeX has broader support now [2].

    [1] https://katex.org

    [2] https://katex.org/docs/support_table.html

  9. Nutrient

    Nutrient - The #1 PDF SDK Library. Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.

    Nutrient logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Using eqn for static website equation generation

    1 project | news.ycombinator.com | 1 Feb 2025
  • Show HN: Latex.to – LaTeX to image converter running in the browser

    5 projects | news.ycombinator.com | 29 Oct 2024
  • KaTeX-Compatible Test File

    1 project | /r/LaTeX | 11 Dec 2023
  • Temml: A TeX-to-MathML conversion library in JavaScript

    1 project | news.ycombinator.com | 14 Oct 2023
  • How to put html input fields into LaTeX vector parenthesis? (with katex properly rendering)

    1 project | /r/LaTeX | 28 May 2023