# LINKS.md — Link Harvesting & Sitemap Discovery Engine

> Automated hyperlink and sitemap crawler for Copy Markdown. Extracts all internal and external URLs, resolves absolute paths, and structures links for technical SEO audits, site mapping, and AI navigation.

## Overview
LINKS.md scrapes every active hyperlink (`<a href>`) on the page, deduplicates URLs, normalizes relative paths to absolute URLs, captures descriptive anchor text, and probes for author-published `sitemap.xml` endpoints.

## Capabilities
- **Absolute URL Resolution:** Resolves all relative hrefs against the document `baseURI`.
- **Anchor Text Mapping:** Associates each destination link with its human-readable anchor or `aria-label`.
- **Sitemap Discovery:** Automatically detects and surfaces links to `/sitemap.xml` and RSS feeds.
- **Batch Tab Export:** Extracts links across all open tabs in your current Chrome window.
- **TSV Spreadsheet Export:** Formats open tabs into Google Sheets-ready TSV for instant clipboard pasting (Ctrl+V).

## Standard Output Format
```markdown
URL: "https://www.example.com/"

---

# example.com LINKS.md

- [Home](https://www.example.com/)
- [Documentation](https://www.example.com/docs)
- [API Reference](https://www.example.com/api)
- [Blog](https://www.example.com/blog)
- [Privacy Policy](https://www.example.com/privacy)

---
Extracted with [Copy Markdown](https://www.copymarkdown.md)
```

## Navigation & Resources
- Web Interface: https://www.copymarkdown.md/links
- CONTENT.md: https://www.copymarkdown.md/content.md
- DESIGN.md: https://www.copymarkdown.md/design.md
- Chrome Web Store: https://chromewebstore.google.com/detail/copy-markdown/chjlhkmhgpojfmddbpplonolmcjbbbem
- Home: https://www.copymarkdown.md
- Built by Michael Vereb: https://www.michaelvereb.com
