From 059848f8b0ae36e3a8fb4bd6fd3cda8531e5dce7 Mon Sep 17 00:00:00 2001
From: Abhi <31253403+abhiy13@users.noreply.github.com>
Date: Mon, 14 Jul 2025 08:00:38 +0000
Subject: [PATCH] fix(rss): add cdata to escape html content for rss feed (#2046)
---
quartz/build.ts | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/quartz/build.ts b/quartz/build.ts
index 9fff1b6..d9f5efc 100644
--- a/quartz/build.ts
+++ b/quartz/build.ts
@@ -251,9 +251,12 @@
// update allFiles and then allSlugs with the consistent view of content map
ctx.allFiles = Array.from(contentMap.keys())
ctx.allSlugs = ctx.allFiles.map((fp) => slugifyFilePath(fp as FilePath))
- const processedFiles = Array.from(contentMap.values())
- .filter((file) => file.type === "markdown")
- .map((file) => file.content)
+ let processedFiles = filterContent(
+ ctx,
+ Array.from(contentMap.values())
+ .filter((file) => file.type === "markdown")
+ .map((file) => file.content),
+ )
let emittedFiles = 0
for (const emitter of cfg.plugins.emitters) {
--
Gitblit v1.10.0