From 3731fb580d57ff6ed6f26873a45df923cb0d9c76 Mon Sep 17 00:00:00 2001 From: Stephen Tse Date: Sat, 3 May 2025 16:37:33 -0700 Subject: [PATCH] Removed redundant code --- quartz/plugins/transformers/ofm.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts index 7f3e4abc6..912447666 100644 --- a/quartz/plugins/transformers/ofm.ts +++ b/quartz/plugins/transformers/ofm.ts @@ -236,8 +236,6 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin> const alt = match?.groups?.alt ?? "" const width = match?.groups?.width ?? "auto" const height = match?.groups?.height ?? "auto" - // Pass full slug to the HTML transformer "Images" - const fullSlug = slugifyFilePath(fp as FilePath, false) return { type: "image", url, @@ -246,7 +244,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin> width, height, alt, - dataSlug: fullSlug, + // Pass full slug to the HTML transformer "Images" + dataSlug: url, }, }, }