fix shortest path for non-md files, mobile fix
This commit is contained in:
1 parent
075ac33474
commit
d8d9dd22c9
4 files changed
+62
-49
No files matched your search
@@ -99,9 +99,10 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
|
||||
typeof node.properties.src === "string"
|
||||
) {
|
||||
if (!isAbsoluteUrl(node.properties.src)) {
|
||||
let dest = node.properties.src as RelativeURL
|
||||
const ext = path.extname(node.properties.src)
|
||||
node.properties.src =
|
||||
transformLink(joinSegments("assets", node.properties.src)) + ext
|
||||
dest = node.properties.src = transformLink(dest)
|
||||
node.properties.src = dest + ext
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user