Represents a completely parsed markdown file with all extracted metadata.
Contains all links, references, and dependency information needed for intelligent file operations and cross-reference management.
Using parsed file data
const parsedFile: ParsedMarkdownFile = await parser.parseFile('document.md');console.log(`File: ${parsedFile.filePath}`);console.log(`Links: ${parsedFile.links.length}`);console.log(`Dependencies: ${parsedFile.dependencies.length}`);console.log(`Dependents: ${parsedFile.dependents.length}`); Copy
const parsedFile: ParsedMarkdownFile = await parser.parseFile('document.md');console.log(`File: ${parsedFile.filePath}`);console.log(`Links: ${parsedFile.links.length}`);console.log(`Dependencies: ${parsedFile.dependencies.length}`);console.log(`Dependents: ${parsedFile.dependents.length}`);
Absolute file path
All links found in the file
Reference-style link definitions
Files that this file depends on (links to)
Files that depend on this file (link to this file)
Represents a completely parsed markdown file with all extracted metadata.
Contains all links, references, and dependency information needed for intelligent file operations and cross-reference management.
Example
Using parsed file data