Backlink and graph get confused when mixing wikilinks and unescaped asterisk character

If I use * as the end of a word instead of a style marker both the backlink system and the graph view fail to register a wikilink as a backlink but succeed on the second if both links have an asterisk.

Steps to reproduce

  1. Create note with text Hierarchical Annotated A* is a [[pathfinding algorithm]] that combines [[Annotated AStar|Annotated A*]] with [[Hierarchical AStar|Hierarchical A*]].
  2. Follow link to Annotated A*
  3. Open backlinks tab

Even before step 2 you should already be able to notice that Annotated AStar shows up in the graph view while Hierarchical AStar does show up.

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

Yes. This has been reproduced in the sandbox vault

Expected result

I expect to see both Hierarchical AStar, and Annotated AStar as an unrealized/unresolved link (can’t remember the terminology you use).
After following the link to Annotated AStar the backlink tab should show the linking note

Actual result

Annotated AStar fails to show up in the graph at all until realized. Once realized it doesn’t show as connected on the graph and the linked mentions tab fails to even show it up in the linked mentions.

Environment

SYSTEM INFO:
Obsidian version: 1.12.7
Installer version: 1.12.7
Operating system: Windows 11 Pro 10.0.26200
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none


Additional information

The problem solves itself if I escape the *
but given that style markers only work if I write them like this and not when I write* like this*, it seems to me that this should not be necessary (or the parsing of the style markers should be more aggressive, I don’t really care as long as it’s consistent)

(I’ll edit your post so the example is in a code block)