mirror of
https://github.com/vacp2p/rfc.vac.dev.git
synced 2026-01-07 21:33:54 -05:00
fix: fix bug with updateMarkdownLinksToExcludeMD
This commit is contained in:
@@ -123,9 +123,6 @@ function updateMarkdownLinksToExcludeMD(content) {
|
|||||||
return match
|
return match
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace ../../ with /
|
|
||||||
p2 = p2.replace(/\.\.\/\.\.\//g, '/')
|
|
||||||
|
|
||||||
let url = p2.replace(/\.md$/, '') // Remove .md extension from URL
|
let url = p2.replace(/\.md$/, '') // Remove .md extension from URL
|
||||||
let anchor = p3.replace(/^\//, '') // Remove preceding '/' from anchor if exists
|
let anchor = p3.replace(/^\//, '') // Remove preceding '/' from anchor if exists
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user