Closing backlink bracket syntax highlighting incorrect

Steps to reproduce

  1. Create a bullet point
  2. Create a backlink on the same line as that bullet point
  3. Press the Enter key to go to a new line, creating a second bullet point
  4. Create a backlink on the same line as that bullet point that isn’t the same as the previous backlink

Expected result

  • [[A Backlink]] (where all brackets are the same color)

Actual result

  • [[A Backlink]] (where the rightmost bracket is the color of regular text instead of the backlink syntax highlighting color)

Environment

  • Operating system: macOS Catalina
  • Obsidian version: 0.8.1 Insider Build

Additional information

  • It seems like you can “fix” the issue by typing a second hyphen on the same line you typed the first one, like this:

    • [[My Backlink]]
  • I noticed that the issue doesn’t seem to crop up if there is text between the ensuing bullet point and the backlink.

Good catch.

Someone else noted that it is resolved if your link has a space in it. Could that pattern also explain what you’ve seen?

I didn’t notice that, but you’re right. If I add a space in between either the set of opening or closing brackets and the text of the backlink, the highlighting error goes away. I also noticed that the issue doesn’t seem to crop up if there is text between the ensuing bullet point and the backlink. I’ll update my post to reflect that observation.

1 Like

I think licat fixed this for the next release.

Good to know. Thanks for the update!