Parsing problems in editor with Inline footnotes and math

Steps to reproduce

Paste the following in the sandbox vault:

a^[$()_n$]. this is cursive in live preview.

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


Expected result

Everything is non-cursive.

Actual result

Everything after the underscore is cursive.


	Obsidian version: v1.3.5
	Installer version: v1.3.3
	Operating system: #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon May 22 13:39:36 UTC 2 5.19.0-43-generic
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on


Additional information

afaik, everything works fine for alphanumerical symbols before the underscore but all other things i tested trigger markdown formatting. replacing _ with * always leads to md formatting.
while i have observed the display bug only in inline footnotes, there is a similar thing happening with autocompletion: the second underscore for md formatting is added when inside inline math after non-alphanumeric characters.

You can escape the formatting with a backslash.

a^[$()\_n$]. This is no longer cursive.

Unfortunately, this also escapes the underscore in latex and thus I don’t get a subscript anymore but an underscore.