Creates a generator, filling any option left unset with its default: external links excluded, images included, anchors excluded, the default maximum depth and the current working directory as base.
Graph generation options.
Exports a link graph to the specified format.
The link graph to export
Output format
Formatted graph representation
Generates a complete link graph from markdown files.
File patterns to process (supports globs)
Promise resolving to the generated link graph
Generates interactive link graphs from markdown file relationships.
The LinkGraphGenerator analyzes markdown files to extract internal links and builds directed graphs of file relationships. Supports multiple output formats including JSON data, Mermaid diagrams, and interactive HTML visualizations.
Example
Basic graph generation
Example
Export to different formats