Skip to content

Wikilinks

Wikilinks connect notes into a graph. pkm extracts them during indexing and stores both the raw target and the resolved note ID when possible.

[[Note]]
[[Note|display text]]
[[Note#Heading]]
[[Note#^block-id]]
![[Embedded Note]]

Display text, headings, and block fragments are stripped before storage. The normalized target is used for resolution.

pkm resolves a link by checking:

  1. Link path without .md
  2. Filename stem
  3. Frontmatter title
  4. Frontmatter aliases

This means a generated file like DAG - user_events_daily.md can still be found through an alias such as DAG: user_events_daily.

Backlinks ask the reverse question: which notes point here?

Terminal window
pkm backlinks "DAG: user_events_daily"

Forward references ask what a note points to:

Terminal window
pkm backlinks refs "DAG: user_events_daily"