Comment

Comment by jake-low

This is pretty neat. A week or so ago when "MathJax turns 3.0" was on the frontpage [0], I followed a link to this very thoughtful comment [1] from 2019 by svat about the landscape of math typesetting on the web. Since then I've been thinking a little bit about MathML and how compilers from other more input-friendly formats to MathML might encourage wider adoption. So I'm excited to see this library.

I've heard of AsciiMath before but hadn't ever had a chance to play with it, so I appreciated the live demo on the project website. One thing I noticed is that AsciiMath uses whitespace around operators to determine binding order.

For example (AsciiMath on left, TeX on right)

    f(x) = x+1 / 2    ≡    f(x) = \frac{x + 1}{2}
    f(x) = x + 1/2    ≡    f(x) = x + \frac{1}{2}
When there's equal spacing around neighboring operators, normal order of operations seems to apply.

This seems fairly intuitive, but might not scale to large, complex equations as well as TeX's bracket syntax does. Nonetheless, I think I like it for simple equations.

Question for the author: you mention on the page that Mathup supports an input language inspired by AsciiMath [2]. What are the differences? Does Mathup accept a subset of AsciiMath, or are there cases where the syntax diverges? And if the latter is the case, what motivated devaiting from AsciiMath's syntax?

[0]: https://news.ycombinator.com/item?id=22582343

[1]: https://news.ycombinator.com/item?id=19347737

[2]: There's a typo in this phrase on your page, BTW: "insipired" has an extra "i"

parent jake-low 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton