Jacky Zhao
2023-08-17 0998bc355e6425e6b2bdf3d2da7124aa7b63b2a2
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
                }
              }
            })