From c6af3d5ea3447a44a40f44587195a372738a5f6b Mon Sep 17 00:00:00 2001 From: Bojan Rajh Date: Thu, 31 Jul 2025 12:55:08 +0200 Subject: [PATCH] fix: skip the loop when deadlinks are ignored --- src/node/markdownToVue.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/markdownToVue.ts b/src/node/markdownToVue.ts index f5cee33c..3959a67a 100644 --- a/src/node/markdownToVue.ts +++ b/src/node/markdownToVue.ts @@ -195,7 +195,8 @@ export async function createMarkdownToVueRenderFn( }) } - if (links) { + const { ignoreDeadLinks = true } = siteConfig + if (links && ignoreDeadLinks !== true) { const dir = path.dirname(file) for (let url of links) { const { pathname } = new URL(url, 'http://a.com')