Bold formatting cannot be toggled off when the sentence contains LaTeX

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