@@ -11,6 +11,14 @@ This tool checks for broken URLs in all Markdown files within the repository. It
11
11
- Image links
12
12
- SVG image links
13
13
- Markdown header links (` #header-name ` )
14
+ - Advanced header link validation:
15
+ - Extracts actual headers from markdown files
16
+ - Validates in-page links (` #header-name ` )
17
+ - Cross-file header links (` file.md#header-name ` )
18
+ - Smart directory link handling:
19
+ - Detects links ending with ` / `
20
+ - Looks for default files (` _index.md ` , ` index.md ` , ` README.md ` )
21
+ - Fallback to any markdown file in the directory
14
22
- Detailed output with categorization by link type
15
23
- Colorized console output (including in GitHub Actions)
16
24
- Comprehensive log files with summary tables
@@ -100,6 +108,9 @@ Link Validation Summary (6122 links checked):
100
108
- Image URLs: 0
101
109
- SVG URLs: 0
102
110
- Header links: 0
111
+ - No links found: 2 categories
112
+ - Root-relative URLs
113
+ - SVG URLs
103
114
- OK links: 6080
104
115
❌ Broken links were found. Check the logs for details.
105
116
```
@@ -133,8 +144,7 @@ Runtime duration: 0:05:24.123456
133
144
134
145
// ... sections for other link types ...
135
146
136
- ===== LINK VALIDATION SUMMARY (6122 LINKS CHECKED) =====
137
-
147
+ Link Validation Summary (6122 links checked):
138
148
- Broken links: 42
139
149
- Absolute URLs: 8
140
150
- Relative URLs without anchors: 0
@@ -143,11 +153,11 @@ Runtime duration: 0:05:24.123456
143
153
- Image URLs: 0
144
154
- SVG URLs: 0
145
155
- Header links: 0
156
+ - No links found: 2 categories
157
+ - Root-relative URLs
158
+ - SVG URLs
146
159
- OK links: 6080
147
-
148
- ===== CONCLUSION: 42 BROKEN LINKS FOUND =====
149
-
150
- ❌ Broken links were found. Check the details above.
160
+ ❌ Broken links were found. Check the logs for details.
151
161
```
152
162
153
163
## ⚙️ Configuration
0 commit comments