mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 21:34:06 -06:00
Removed redundant code
This commit is contained in:
parent
cdef619141
commit
3731fb580d
@ -236,8 +236,6 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
|
||||
const alt = match?.groups?.alt ?? ""
|
||||
const width = match?.groups?.width ?? "auto"
|
||||
const height = match?.groups?.height ?? "auto"
|
||||
// Pass full slug to the HTML <image> transformer "Images"
|
||||
const fullSlug = slugifyFilePath(fp as FilePath, false)
|
||||
return {
|
||||
type: "image",
|
||||
url,
|
||||
@ -246,7 +244,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
|
||||
width,
|
||||
height,
|
||||
alt,
|
||||
dataSlug: fullSlug,
|
||||
// Pass full slug to the HTML <image> transformer "Images"
|
||||
dataSlug: url,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user