File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -189,13 +189,13 @@ export async function createMarkdownToVueRenderFn(
189
189
return ignore . test ( url )
190
190
}
191
191
if ( typeof ignore === 'function' ) {
192
- return ignore ( url )
192
+ return ignore ( url , fileOrig )
193
193
}
194
194
return false
195
195
} )
196
196
}
197
197
198
- if ( links ) {
198
+ if ( links && siteConfig ?. ignoreDeadLinks !== true ) {
199
199
const dir = path . dirname ( file )
200
200
for ( let url of links ) {
201
201
const { pathname } = new URL ( url , 'http://a.com' )
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ export interface UserConfig<ThemeConfig = any>
114
114
ignoreDeadLinks ?:
115
115
| boolean
116
116
| 'localhostLinks'
117
- | ( string | RegExp | ( ( link : string ) => boolean ) ) [ ]
117
+ | ( string | RegExp | ( ( link : string , source : string ) => boolean ) ) [ ]
118
118
119
119
/**
120
120
* Don't force `.html` on URLs.
You can’t perform that action at this time.
0 commit comments