Inline math notation not displaying properly inside a preview popup for an internal heading links

Steps to reproduce

  1. On a first note to be linked, write a header with a LaTex inline expression.
    Example: # Test header $X_i$
  2. On a second note, create an internal link leading to the header of the first note.
    Example: [[Note 1#Test header $X_i$]]
  3. Hover the link with the mouse and hold CTRL to display the preview popup and see the result.

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

Yes

Expected result

The math notation to be properly rendered inside the popup preview.

Actual result

The title with the math expression is only displaying the raw text instead of the rendered math notation inside the link preview popup.

Environment

Debug info

SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.4.16
Operating system: Windows 10 Pro 10.0.22631
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 2
Restricted mode: off
Plugins installed: 11
Plugins enabled: 7
1: Calendar v1.5.10
2: Dataview v0.5.67
3: Templater v2.9.1
4: Admonition v10.3.2
5: Advanced Tables v0.22.1
6: Linter v1.27.1
7: Excalidraw v2.6.7

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.


Additional information

  • The problem happens for every heading levels
  • Only the linked heading is affected. Every children headings on the preview will display properly their math notations.
  • Embedded internal heading link displays properly the math notation of the heading.
  • Previewing an internal link of a complete files display properly every math notation for headings present on the note.

I have the same problem the only thing I could add is it also happens If you link a Heading inside the same note.