mirror of
https://github.com/vacp2p/rfc.vac.dev.git
synced 2025-02-22 04:18:27 +00:00
fix: fix bug with relative link
This commit is contained in:
parent
59b424a92d
commit
2fa764ca92
@ -123,6 +123,9 @@ 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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user