fix: fix bug with updateMarkdownLinksToExcludeMD

This commit is contained in:
jinhojang6
2024-10-11 03:02:44 +09:00
parent 2fa764ca92
commit 5b7b2405db

View File

@@ -123,9 +123,6 @@ function updateMarkdownLinksToExcludeMD(content) {
return match
}
// replace ../../ with /
p2 = p2.replace(/\.\.\/\.\.\//g, '/')
let url = p2.replace(/\.md$/, '') // Remove .md extension from URL
let anchor = p3.replace(/^\//, '') // Remove preceding '/' from anchor if exists