From ab5efac75fb0f20afe74bef33a2cf7e9ba0ba40f Mon Sep 17 00:00:00 2001
From: bfahrenfort <59982409+bfahrenfort@users.noreply.github.com>
Date: Sun, 01 Oct 2023 16:47:22 +0000
Subject: [PATCH] Fix: RSS title escaping (#521)

---
 quartz/plugins/transformers/syntax.ts |   26 +++++++++-----------------
 1 files changed, 9 insertions(+), 17 deletions(-)

diff --git a/quartz/plugins/transformers/syntax.ts b/quartz/plugins/transformers/syntax.ts
index 0f46519..1766817 100644
--- a/quartz/plugins/transformers/syntax.ts
+++ b/quartz/plugins/transformers/syntax.ts
@@ -4,21 +4,13 @@
 export const SyntaxHighlighting: QuartzTransformerPlugin = () => ({
   name: "SyntaxHighlighting",
   htmlPlugins() {
-    return [[rehypePrettyCode, {
-      theme: 'css-variables',
-      onVisitLine(node) {
-        if (node.children.length === 0) {
-          node.children = [{ type: 'text', value: ' ' }]
-        }
-      },
-      onVisitHighlightedLine(node) {
-        node.properties.className ??= []
-        node.properties.className.push('highlighted')
-      },
-      onVisitHighlightedWord(node) {
-        node.properties.className ??= []
-        node.properties.className.push('word')
-      },
-    } satisfies Partial<CodeOptions>]]
-  }
+    return [
+      [
+        rehypePrettyCode,
+        {
+          theme: "css-variables",
+        } satisfies Partial<CodeOptions>,
+      ],
+    ]
+  },
 })

--
Gitblit v1.10.0