Canvas backlinks
Advanced Metadata Cache includes canvas (.canvas) files in the backlink index, so a note referenced from a canvas card shows up in its backlinks just like a note referenced from Markdown.
This vault ships Canvas map - a canvas whose cards reference Central topic: one file card that embeds the note and one text card that contains a [[Central topic]] link.
Try it
Section titled “Try it”The button asks the cache for the backlinks of Central topic and lists the ones that come from a canvas file.
import { Notice } from 'obsidian';const dict = app.metadataCache.getBacklinksForFile('Topics/Central topic.md');const canvasSources = dict.keys().filter((path) => path.endsWith('.canvas'));new Notice(`Central topic has ${canvasSources.length.toString()} canvas backlink source(s):\n${canvasSources.join('\n')}`);Open the core Backlinks pane on Central topic and the canvas file appears in the list.
import { Notice } from 'obsidian';const cache = app.metadataCache.getCache('Topics/Canvas map.canvas');const links = cache?.frontmatterLinks ?? [];new Notice(`getCache('Topics/Canvas map.canvas') exposes ${links.length.toString()} link(s):\n${links.map((link) => link.link).join('\n')}`);Frontmatter markdown links
Section titled “Frontmatter markdown links”A markdown link in a frontmatter property, such as source: "[Central topic](Topics/Central topic.md)", is not a link to Obsidian. With the Frontmatter Markdown Links plugin installed it becomes one, and the backlink index counts it like any other backlink.
See 04 Settings for the options that control refresh behavior.