Scans a directory (or a single markdown file) and measures every markdown file found.
Files are parsed with LinkParser and internal links are checked with LinkValidator in
file-existence mode only, so no network access happens. The inbound link count is derived across
the whole parsed set: every link whose resolved path names another scanned file increments that
file's inbound count, and a file with zero inbound links is an orphan.
Parameters
targetPath: string
Directory to scan recursively, or a single markdown file
Scans a directory (or a single markdown file) and measures every markdown file found.
Files are parsed with LinkParser and internal links are checked with LinkValidator in file-existence mode only, so no network access happens. The inbound link count is derived across the whole parsed set: every link whose resolved path names another scanned file increments that file's inbound count, and a file with zero inbound links is an orphan.