Editor: a link or tag on the line after an HTML block is styled and clickable, but it is part of the HTML block and not indexed

Steps to reproduce

  1. Create a note named Note.

  2. In another note, paste this. There is no blank line after <hr>:

    <hr>
    [[Note]] and #tag
    
  3. Look at it in Live Preview, then in Reading view, then open the Backlinks pane of Note and search for tag:#tag.

Did you follow the troubleshooting guide?

Yes (reproduced in the sandbox vault, no community plugins).

Expected result

All views agree on what the second line is.

Use of HTML snippets breaks subsequent declarations of internal links and tags if they are not separated by a blank new line was closed with the answer that this is correct: an HTML block runs on until a blank line (CommonMark 0.31.2, 4.6 HTML blocks), so [[Note]] and #tag is part of the block. Reading view and the metadata cache follow that rule. I am not asking to change it, only for the editor to follow it too. That topic is closed to replies, so this is a new one.

Actual result

The editor ends the HTML block at the end of its first line. In Live Preview [[Note]] is a working, clickable internal link and #tag is a styled tag, so the note looks right.

Reading view shows the line as raw text, [[Note]] and #tag, inside the HTML block. The metadata cache has no link and no tag for the note (its only section is one html section over both lines), so Note’s Backlinks pane does not list it and tag:#tag does not find it.

The editor is the only view that shows the link and the tag as working, and that is what led the reporter of the topic above to expect a backlink.

Environment

SYSTEM INFO:
	Obsidian version: 1.14.5
	Installer version: 1.14.4
	Operating system: Windows 11 Pro 10.0.26300
	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

Sandbox vault, no community plugins, default theme and settings. Also reproduced on 1.15.0 (Catalyst).

Additional information

A closing tag such as </div> on its own line, followed by the same second line, does the same. An opening <div> does not: there the editor also takes the second line into the HTML.