feat: add source param to the check fn

pull/4870/head
Bojan Rajh 4 months ago
parent 45e0d0f62a
commit 1f9093e129
No known key found for this signature in database
GPG Key ID: FC81BE9B7B6AA42A

@ -189,7 +189,7 @@ export async function createMarkdownToVueRenderFn(
return ignore.test(url)
}
if (typeof ignore === 'function') {
return ignore(url)
return ignore(url, fileOrig)
}
return false
})

@ -114,7 +114,7 @@ export interface UserConfig<ThemeConfig = any>
ignoreDeadLinks?:
| boolean
| 'localhostLinks'
| (string | RegExp | ((link: string) => boolean))[]
| (string | RegExp | ((link: string, source: string) => boolean))[]
/**
* Don't force `.html` on URLs.

Loading…
Cancel
Save