Anchors

Anchors allows creating links to a certain part of a note, such as referencing a particular heading or section within a note.

This feature was introduced in TriliumNext v0.94.0 and augmented in v0.103.0 to support linking across notes.

Interaction#

  • To create a anchor:
    • Place the cursor at the desired position where to place the anchor.
    • Look for the Article Image button in the Formatting toolbar, and then press the Article Image button.
    • Alternatively, use Slash Commands and look for anchor.
  • To place a link to a anchor:
    • Place the cursor at the desired position of the link.
    • From the link pane, select the Anchors section and select the desired anchor.

Linking across notes#

Trilium v0.103.0 introduces cross-note Anchors, which makes it possible to create Internal (reference) links which point to a specific anchor in that document.

Compatibility with documents from previous versions#

For notes created prior to Trilium v0.103.0, you might notice that the Anchors might not be identified. This limitation is intentional in order not to have to re-process all the notes, looking for anchors.

To fix this, simply go that note and make any change (e.g. inserting a space), this will trigger the recalculation of the links.

Linking to anchors through the Add link dialog#

  1. Create an anchor in the target note using the same process as described above.
  2. In another note, press Ctrl+L to insert an internal link. Select the target note containing Anchors.
  3. If the target note contains Anchors, a section will appear underneath the note selector with the list of Anchors.
  4. Add the link normally.

Clicking on a reference link pointing to a anchor will automatically scroll to the desired section.

Linking to anchors through the bookmark toolbar#

  1. Create an anchor in the target note using the same process as described above.
  2. Click on the anchor to reveal the anchor's floating toolbar.
  3. Click on the Copy anchor reference link button.
  4. Go to the note where to insert the link and press Ctrl+V.