flag to allow ofm replace in html embed

This commit is contained in:
Jacky Zhao 2023-08-01 22:47:16 -07:00
parent cc79502670
commit a70e846b0a
8 changed files with 124 additions and 7 deletions
quartz/plugins/transformers

View file

@ -47,6 +47,7 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
return targetCanonical === fileName
})
// only match, just use it
if (matchingFileNames.length === 1) {
const targetSlug = canonicalizeServer(matchingFileNames[0])
return (resolveRelative(curSlug, targetSlug) + targetAnchor) as RelativeURL