Skip to content

Commit 68acf50

Browse files
committed
Merge branch 'v4' of https://github.com/jackyzha0/quartz into v4
2 parents bccaea1 + 930eb1c commit 68acf50

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

quartz/build.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,12 @@ async function rebuild(changes: ChangeEvent[], clientRefresh: () => void, buildD
251251
// update allFiles and then allSlugs with the consistent view of content map
252252
ctx.allFiles = Array.from(contentMap.keys())
253253
ctx.allSlugs = ctx.allFiles.map((fp) => slugifyFilePath(fp as FilePath))
254-
const processedFiles = Array.from(contentMap.values())
255-
.filter((file) => file.type === "markdown")
256-
.map((file) => file.content)
254+
let processedFiles = filterContent(
255+
ctx,
256+
Array.from(contentMap.values())
257+
.filter((file) => file.type === "markdown")
258+
.map((file) => file.content),
259+
)
257260

258261
let emittedFiles = 0
259262
for (const emitter of cfg.plugins.emitters) {

0 commit comments

Comments
 (0)