vaultmd / extractLinks
Function: extractLinks()
extractLinks(
content):ExtractedLinks
Defined in: src/links/extract.ts:40
Extract all raw link tokens from a markdown file's content. Strips fenced code blocks before scanning so links inside code are not collected. Does not normalise or resolve targets.
Parameters
content
string
Raw UTF-8 content of a markdown file.
Returns
ExtractedLinks containing raw wikilinks, embeds, and standard markdown link URLs.