Linking

Do you have the same issues as I do with linking in the format [qwerty] ( # ^ aa)? New links saved in this format either work or they don’t. I can’t find any consistency. Maybe someone experienced can provide some advice?

Are you trying to link to website or other external URL? Or are you trying to link to another document in Obsidian?

See Internal links - Obsidian Help

and Basic formatting syntax - Obsidian Help

I’m trying to create the simplest internal links to a block with an identifier. The syntax of my link is definitely correct - in the form [ aaaaa ]( # % identifier). Of course, there are no spaces in the notation. The links work or they don’t. I noticed that when experimenting on a clean file - everything is OK. Experimenting on a file that has been deleted many times and new versions of links have been added - here the links usually didn’t want to work. Strange - as if deleting a block, something still remained after it.

I think I’ve found the reason. All the links started working if the line under the block is empty. But is it supposed to be like that?

After experimenting with a few techniques I found this.

---

Carrot method:

[[#^f96795|Internal link to header ID display text.]] // TOC link to the header

## Same name link // Header 1 with same name

[Paragraph 1]

## Same name link ^f0c3cd // Header 2 with same name which needs to be linked to

[Paragraph 2]

The ToC link will go directly to the second iteration of the header using same name but has the ID ^f0c3cd which will be rendered invisible in preview mode for both the header and link. 

[Same name link](#Same%20name%20link) 

This works as well but cannot handle headers using the same exact name, like if you have multiple headers with the name “# LABS” or “# Exercises” then you need to use the carrot method for Obsidian preferably imo.

Id method:

[[#<a id='1'></a>Same name link|Same name link]] // TOC link to header

# <a id='1'></a>Same name link // Header will format properly and <a id='1'></a will disappear in preview mode.

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