quartz/plugins/transformers/links.ts
@@ -8,7 +8,7 @@ joinSegments, splitAnchor, transformLink, } from "../../path" } from "../../util/path" import path from "path" import { visit } from "unist-util-visit" import isAbsoluteUrl from "is-absolute-url" @@ -79,9 +79,8 @@ ) { if (!isAbsoluteUrl(node.properties.src)) { let dest = node.properties.src as RelativeURL const ext = path.extname(node.properties.src) dest = node.properties.src = transformLink(curSlug, dest, transformOptions) node.properties.src = dest + ext node.properties.src = dest } } })