Math block selection breaks if an image is attached before it

Steps to reproduce

  • Sandbox Vault
  • Create a math block using $$
  • Paste in an image above the math block
  • Attempt to click on the math block, or the code button on the math block

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


Expected result

The code window for editing the math block appears.

Actual result

Some portion of the image URL is selected instead. Selecting/editing the math block only works after closing and re-opening the file.


Obsidian version: v1.4.14
Installer version: v1.4.5
Operating system: Windows 10 Home 10.0.22621
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

This is a screenshot of the text that gets selected instead of the math block:

Is there a blank line between the image and the math block? You may need one.

Yes, there is. I’ve also had the bug pop up even when the math and image are not next to each other (i.e. there is some other content in between)

1 Like