From 5ec61468d5e787b3c8ae32a2b4ef1595cf0bc3ee Mon Sep 17 00:00:00 2001
From: Emile Bangma <ewjbangma@hotmail.com>
Date: Sun, 31 Mar 2024 16:44:50 +0000
Subject: [PATCH] fix(wikilinks): proper escaping of pipe character in wikilinks inside tables (#1040)
---
quartz/util/theme.ts | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/quartz/util/theme.ts b/quartz/util/theme.ts
index 8d7b727..d3bfb9a 100644
--- a/quartz/util/theme.ts
+++ b/quartz/util/theme.ts
@@ -9,18 +9,24 @@
highlight: string
}
+interface Colors {
+ lightMode: ColorScheme
+ darkMode: ColorScheme
+}
+
export interface Theme {
typography: {
header: string
body: string
code: string
}
- colors: {
- lightMode: ColorScheme
- darkMode: ColorScheme
- }
+ cdnCaching: boolean
+ colors: Colors
+ fontOrigin: "googleFonts" | "local"
}
+export type ThemeKey = keyof Colors
+
const DEFAULT_SANS_SERIF =
'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif'
const DEFAULT_MONO = "ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace"
@@ -44,9 +50,9 @@
--tertiary: ${theme.colors.lightMode.tertiary};
--highlight: ${theme.colors.lightMode.highlight};
- --headerFont: ${theme.typography.header}, ${DEFAULT_SANS_SERIF};
- --bodyFont: ${theme.typography.body}, ${DEFAULT_SANS_SERIF};
- --codeFont: ${theme.typography.code}, ${DEFAULT_MONO};
+ --headerFont: "${theme.typography.header}", ${DEFAULT_SANS_SERIF};
+ --bodyFont: "${theme.typography.body}", ${DEFAULT_SANS_SERIF};
+ --codeFont: "${theme.typography.code}", ${DEFAULT_MONO};
}
:root[saved-theme="dark"] {
--
Gitblit v1.10.0