vaultmd / storedLinksFor
Function: storedLinksFor()
storedLinksFor(
content,srcRel,mode):StoredLink[]
Defined in: src/links/resolve.ts:72
Extract and normalise outbound link records from a note, ready to store in the index. In 'wikilink' mode, collects [[wikilinks]] and ![[embeds]] (normalised stems). In 'relative' mode, collects [text](./path.md) hrefs resolved relative to srcRel, filtering out external URLs and anchors.
Parameters
content
string
Raw UTF-8 content of the source note.
srcRel
string
Vault-relative path of the source note (used for relative resolution).
mode
Link-resolution strategy matching the vault's linkResolution config.
Returns
Array of StoredLink records for the outbound links of the note.