hackmdio / codimd

CodiMD - Realtime collaborative markdown notes on all platforms.
https://hackmd.io/c/codimd-documentation
GNU Affero General Public License v3.0
9.11k stars 1.05k forks source link

Underscore after parentheses in math mode #1800

Closed ikabadzhov closed 1 year ago

ikabadzhov commented 1 year ago

If I write in math mode: (x)_y or (x)_{y} (or anything with an underscore after an opening or closing paranthesis), I get y as a subscript (which is as expected), but also the text afterwards appears as italic in the wiritng console (which is certainly not desired and mismatches the parsed output). On the other hand, writing (in math mode) x_y (and so x_{y}) simply puts the y as subscript, which I expect to be the default behaviour.

I used HackMD on google chrome.

ikabadzhov commented 1 year ago

This was due to polluted space of some missing closing dollar sign. I think it should be closed.

jackycute commented 1 year ago

Thanks for clarifying this @ikabadzhov