feat: md-bg

This commit is contained in:
hyper
2026-02-27 21:22:13 +08:00
parent 3154830edd
commit 95be758bcc
4 changed files with 53 additions and 1 deletions
+4
View File
@@ -9,6 +9,10 @@ export function resolvePath(base: string, relative: string): string {
if (relative.startsWith('/')) {
return relative;
}
// if starts with http(s)://
if(relative.startsWith('http://') || relative.startsWith('https://')){
return relative;
}
const baseParts = base.split('/').filter(Boolean);
// 移除文件名,保留目录路径