feat: fix issues with images

This commit is contained in:
jinhojang6
2025-06-17 03:42:42 +09:00
parent 3458ce0e5f
commit 23c66ba7dc

View File

@@ -142,7 +142,7 @@ function replaceLocalImagePathsWithGitHubUrls(content) {
match.match(/\/(status|vac)\/[^\s)]+\.(png|jpg|jpeg|gif)/)?.[0] || ''
return match.replace(
path,
`https://github.com/vacp2p/rfc-index/blob/main${path}?raw=true`,
`https://raw.githubusercontent.com/vacp2p/rfc-index/refs/heads/main/${path}`,
)
},
)