Black lives matter
Portrait Dr. Axel Rauschmayer
Dr. Axel Rauschmayer
Homepage | Twitter
Cover of book “JavaScript for impatient programmers”
Book, exercises, quizzes
(free to read online)
Cover of book “Deep JavaScript”
Book (50% free online)
Cover of book “Tackling TypeScript”
Book (first part free online)
Logo of newsletter “ news”
Newsletter (free)

Displaying math in HTML

[2010-12-11] dev, webdev, math
(Ad, please don’t block)

Displaying nice-looking mathematics in HTML has always been a source of frustration. But that is slowly changing. The following are two ways for displaying math nicely in browsers:

  • MathML: is a markup language for math that can be embedded in HTML. Firefox already supports it, WebKit will soon (and thus Safari and Chrome). You can check out MathML in a demo document.
  • MathJax: a JavaScript-based solution that works in all major browsers. It can be integrated into many blogging engines and wikis. The image below is an example of a formula displayed in Google Chrome. In Chrome, it is not a bitmap image, it scales smoothly!
Now all someone has to do is to tell Amazon how to integrate one of these technologies into their Kindle software.