When bold text contains inline LaTeX wrapped in $...$, the bold markers (**) are only partially rendered

Steps to reproduce

In Live Preview, when bold text contains inline LaTeX wrapped in $…$, the bold markers (**) are only partially rendered (e.g., only half of the marker is visible) while the cursor is inside the affected text.

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

Yes

Expected result

Showing both bold markers in the two side of the bold text.

Actual result

See the Steps to reproduce

Environment

SYSTEM INFO:
Obsidian version: 1.12.1
Installer version: 1.11.7
Operating system: Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:45 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6030 25.2.0
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Video: Recording

This is not a new bug, infact is another manifestation of another manifestation of a bug you already reported. I am gonna merge both here.

Steps to reproduce

Type the following sentence in editor in live or source code mode:
**The more responsive are $C$ and $I$ -> the flatter is the IS curve.**

  • Place the cursor anywhere inside the bold text.
  • Use the shortcut for toggling bold formatting (e.g. Cmd + B on macOS or Ctrl + B on Windows).

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

Yes

Expected result

The bold formatting (**) should be removed from the selected text when using the bold toggle shortcut, even if the sentence contains inline LaTeX expressions such as $C$ or $I$.

Actual result

The bold formatting cannot be removed using the shortcut when the sentence contains inline LaTeX.

  • Pressing Cmd/Ctrl + B has no effect
  • The text remains bold
  • Manual deletion of ** is required

This issue does not occur if the sentence does not contain LaTeX.

Environment

SYSTEM INFO:
Obsidian version: v1.11.3
Installer version: v1.10.6
Operating system: Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:45 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6030 25.2.0
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

thanks