diff --git a/plugin/md/markdown/plugins/link.ts b/plugin/md/markdown/plugins/link.ts index 164f521a7..7a81c0091 100644 --- a/plugin/md/markdown/plugins/link.ts +++ b/plugin/md/markdown/plugins/link.ts @@ -45,10 +45,10 @@ export const linkPlugin = (md: MarkdownIt, externalAttrs: Record if (cleanUrl.endsWith('.md')) { cleanUrl = cleanUrl.replace(/\.md$/, '.html'); } - // ./foo -> ./foo.html - if (!cleanUrl.endsWith('.html') && !cleanUrl.endsWith('/')) { - cleanUrl += '.html'; - } + // // ./foo -> ./foo.html + // if (!cleanUrl.endsWith('.html') && !cleanUrl.endsWith('/')) { + // cleanUrl += '.html'; + // } const parsed = new URL(url, 'http://a.com'); url = cleanUrl + parsed.search + parsed.hash; }