A note link can go to a heading inside a note instead of its top. A few links to the headings of a long note, at its start, make a table of contents, and a link to one part of another note takes the reader straight to the part that matters. It works on every plan, on desktop, the web app, iPhone, iPad and Android, and the links sync as part of the note.
A heading in this note
Start a note link the usual way: type [[, or choose Internal Link in the slash menu or in the link button of the editor toolbar. On mobile, tap the link button on the toolbar above the keyboard and choose Internal Link.
While the search is empty and the note you are writing has a heading, its title included, the first row is This note. Pick it to list the note's headings, the smaller ones set in under the bigger ones, and pick the heading the link goes to. A link to a heading of the same note reads as just the heading.
When the note's first line is a heading, that title is listed too, at the top, so a link at the end of a long note can take the reader back to its start.
A heading in another note
Every note in the list that has headings below its title shows a small chevron at its right end. A note whose only heading is its title gets none, since a plain link to the note already opens at its top. Click or tap the chevron to list that note's headings, then pick one. On desktop, the right arrow does the same for the highlighted note. The link reads as the note's title and the heading, like Recipes › Desserts.
To go back to the notes on desktop, click the row with the note's name over the headings, or press Backspace in the empty search, or the left arrow. On your phone, tap the back chevron in the corner of the sheet.
Typing # in the search
A # in the search lists headings straight away, on desktop and on mobile. # on its own lists this note's headings, and #sou narrows them to the ones with those letters, like Sources. A note's name before the #, like Recipes#des, lists the headings of that note under its title. The notes that match the whole search still show under them, so a note with a # in its title, like C# basics, can still be picked.
Following a link to a heading
Click or tap the link and its note opens scrolled so the heading stands at the top. If the heading is in a collapsed section, the section opens first. A link to a heading of the note you are in just scrolls to it.
When a heading is renamed
A link finds its heading by the heading's words, the way Obsidian does, and capitals and spacing do not matter. That is why the link keeps working after the AI rewrites the note around the heading.
Renaming or deleting the heading breaks the link. It then opens the note at its top, or leaves you where you are for a heading of the same note, and a notice says That heading is no longer in the note. Give the heading its old words back, or make the link again. An older version of Grape opens a link to a heading at the top of its note.
Writing them by hand or with the AI
In Markdown a link to a heading is [[Note title#Heading]], the way Obsidian writes it. Exporting a note as Markdown writes it that way, importing Markdown files such as an Obsidian vault keeps it, and the AI chat reads and writes it that way, so you can ask the chat to add a table of contents to a long note or to link a note to the part of another note it is talking about. When a note with that title exists, the link goes to the heading. When the note does not exist yet, the link waits and connects to the heading once the note is made.
In the chat's own answers such a link shows as the note and the heading, like Recipes › Desserts, and clicking it opens the note at that heading.