Buggy Markdown syntax pair with an inline math block in the middle

Steps to reproduce

Type the following in the sandbox environment.

**Boldword with math equation inside $abd = a$BOLD WORD**Non-Bold word.

**normal bold word** 

Expected result

When the cursor moves into the “normal bold word”, the bold syntax pair appears on both sides.
image

Actual result

However, if there is an inline math equation in the middle of a bold pair, then the syntax pair only appears on one side.

OR,

Environment

  • Operating system: Windows 11
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v1.1.8
    Installer version: v0.15.9
    Operating system: Windows 10 Pro 10.0.22623
    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

RECOMMENDATIONS:
none


Additional information

We don’t support bold with math inside. Open a FR for this.