gnab / remark

A simple, in-browser, markdown-driven slideshow tool.
http://remarkjs.com
MIT License
12.67k stars 854 forks source link

Bug with Doubly-Subscript Equations between Remark/KaTeX #650

Open ebridge2 opened 3 years ago

ebridge2 commented 3 years ago

I could be wrong, but I think this is a remark-related issue. See the attached sandbox, which reproduces the issue. On the first slide, you can see that the equation is formatted correctly. However, when I add too many multiple-subscript items such as the second slide, it seems like remark has issues handling this situation. The LaTeX code is valid.

frfeng commented 3 years ago

Hi @ebridge2

It should work if you escape the underscores (see below) on the second slide. This is a known remark problem. See #645 for details.

$$f\_{xz}(x) f\_{xz}(x)$$