From fbb4d7e39928d7e4c7d6cdea3566e00f58f1a0b5 Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 29 Jan 2024 20:45:37 +0000
Subject: [PATCH] chore(deps): bump workerpool from 8.0.0 to 9.1.0 (#757)

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

diff --git a/quartz/plugins/transformers/syntax.ts b/quartz/plugins/transformers/syntax.ts
index 0f46519..e847729 100644
--- a/quartz/plugins/transformers/syntax.ts
+++ b/quartz/plugins/transformers/syntax.ts
@@ -4,21 +4,17 @@
 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,
+        {
+          keepBackground: false,
+          theme: {
+            dark: "github-dark",
+            light: "github-light",
+          },
+        } satisfies Partial<CodeOptions>,
+      ],
+    ]
+  },
 })

--
Gitblit v1.10.0