Obsidian does not detect links to notes if HTML code is embedded in front of them

Steps to reproduce

  1. Create a “note 1” note
  2. Create a “note 2” note
  3. Paste the html code into the “note 1” (for example, the html code of the YouTube video)
  4. Write a link to the “note 2” below
  5. Open the “note 2”
  6. Backlinks in document
  7. The backlink to the “note 1” is not displayed
  8. There is also no connection between notes in “graph view”

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


Expected result

  1. There should be a backlink in the “note 2” file (we made a link in the “note 1” file)
  2. There should be a link between notes in “graph view”

Actual result

This does not work even if:

<html code></html code>
some text

Obsidian could not detect the link due to the embedded HTML code.
If you make a line break between the embedded html code and the link, then everything works:

<html code></html code>



Obsidian version: v1.5.12
Installer version: v1.5.12
Operating system: Windows 10 Pro 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on


Additional information

My example.

“note 1”:

<iframe width="470" height="835" src="https://www.youtube.com/embed/N_s_ZTeiXxE" title="wawa" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
note: [[note 2]]

“note 2”:
(empty file)

This is not a bug.
In Obsidian, you HTML block operators need to be in their own markdown block (separated by black lines) and can’t be intermingled with markdown.

This was in the docs but I can’t find it anymore. I’ll update the docs again.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.