mirror of
https://github.com/vacp2p/rfc.vac.dev.git
synced 2026-01-06 21:03:52 -05:00
fix: fix bug with relative link
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user