- Create a link that appears in text following some custom block HTML element, like:
<div class="someClass"> This is some text in a div. </div> This text includes a link to a [[Note name]] that won't appear in Graph View or the Outgoing Links tab.
Did you follow the troubleshooting guide?
The link should be listed in the Outgoing Link tab as well as in Graph View.
The link is not listed in the Outgoing Link tab nor does it appear in Graph View.
Obsidian version: v1.3.5
Installer version: v1.3.4
Operating system: Darwin Kernel Version 22.5.0: Mon Apr 24 20:51:50 PDT 2023; root:xnu-8796.121.2~5/RELEASE_X86_64 22.5.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
If an empty line is placed between the block-level HTML and the text, then the link is recognised as normal.
For what it’s worth, links which appear inside custom block HTML are not recognised or processed at all. In the following example:
<div class="someClass"> This is a div with a [[File name]] link inside. </div>
The link does not appear in the Outgoing Links tab nor in Graph View. In fact, the link appears as
[[File name]] in Live Preview. I would have expected that to work…
However, if you put a link *inside) an inline HTML element, like this:
This is some text <span style="background: yellow">This is some text containing a [[File name]] link.</span>
then the link is recognised and appears in the Outgoing Links tab and in Graph View. But the link is not shown correctly in Live Preview. In the above example the yellow span contains the literal text
[[File name]] which is not a hyperlink.