Italicized latex with _ for italics and inside equation does not render correctly

Steps to reproduce

  1. Write a latex equation with underscore _ somewhere in equation
  2. Surround the latex equation with italics like so: _equation_
    1. Example: _$g_{j}$_
  3. Go into reading mode, and see that the equation does not render

Compare the expected result and actual result with the following Markdown:

_$hi$_
_$g_{j}$_
  • _$hi$_doesn’t have this issue (because there is no _ inside the equation

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

Expected the latex to have italic styling (pink in my style settings).

Actual result

Latex does not render

Environment

  • Not relevant; has to do with _ parsing behaviour/bug

duplicate of

In the future, do not omit this part and make sure you read and follow and troubleshooting guide.

1 Like

thanks