Escaped square bracket letters don't work with hyperlinks

Before opening a new bug report, please search the forum for duplicates and follow the Troubleshooting Guide.

  • We only consider bugs that are reproducible in the sandbox vault or a vault with no third-party plugins/no css snippets/default theme.
  • For Linux, we only accept bug reports that are reproducible with our Appimage package under Gnome or KDE.
  • Developer issues with the API should go here

Once you’ve done the above, delete everything above this line.

Steps to reproduce

  1. Create a new note
  2. Type [name \[with brackets\]](link)
  3. Open the link

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

Y

Expected result

Expected: The text should show name [with brackets] and opening the hyperlink should create a note link.md.

Actual result

Actual: The text shows [name [with brackets]] where square brackets belonging to hyperlink formatting are shown in the hyperlink text and nothing happens when opening the link.

Environment


Additional information

Yep, I just experienced this too! In the editor mode view only.

SCR-20240514-mpfe

My test file

[link name without brackets](https://obsidian.md/)

[[link name] with brackets at start](https://obsidian.md/)

[link name with [brackets] in the middle](https://obsidian.md/)