From e9fb0ecb96a2de53cf5f060c4e151f539ca4b089 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 02 Feb 2024 05:19:51 +0000
Subject: [PATCH] fix: border radius on search preview

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

diff --git a/quartz/plugins/transformers/syntax.ts b/quartz/plugins/transformers/syntax.ts
index d2d0103..e847729 100644
--- a/quartz/plugins/transformers/syntax.ts
+++ b/quartz/plugins/transformers/syntax.ts
@@ -4,8 +4,17 @@
 export const SyntaxHighlighting: QuartzTransformerPlugin = () => ({
   name: "SyntaxHighlighting",
   htmlPlugins() {
-    return [[rehypePrettyCode, {
-      theme: 'css-variables',
-    } satisfies Partial<CodeOptions>]]
-  }
+    return [
+      [
+        rehypePrettyCode,
+        {
+          keepBackground: false,
+          theme: {
+            dark: "github-dark",
+            light: "github-light",
+          },
+        } satisfies Partial<CodeOptions>,
+      ],
+    ]
+  },
 })

--
Gitblit v1.10.0