From 0a57d032a76dc4d924f9e4927237830a42d2511c Mon Sep 17 00:00:00 2001
From: Lumen Yang <45258158+LumenYoung@users.noreply.github.com>
Date: Thu, 21 Aug 2025 16:37:59 +0000
Subject: [PATCH] feat(typst): invert the math equation for typst rendered equation in darkmode (#2095)
---
quartz/processors/parse.ts | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/quartz/processors/parse.ts b/quartz/processors/parse.ts
index 04efdbe..1099cd9 100644
--- a/quartz/processors/parse.ts
+++ b/quartz/processors/parse.ts
@@ -13,7 +13,7 @@
import { QuartzLogger } from "../util/log"
import { trace } from "../util/trace"
import { BuildCtx, WorkerSerializableBuildCtx } from "../util/ctx"
-import chalk from "chalk"
+import { styleText } from "util"
export type QuartzMdProcessor = Processor<MDRoot, MDRoot, MDRoot>
export type QuartzHtmlProcessor = Processor<undefined, MDRoot, HTMLRoot>
@@ -194,7 +194,7 @@
textToMarkdownPromises.map(async (promise) => {
const result = await promise
processedFiles += result.length
- log.updateText(`text->markdown ${chalk.gray(`${processedFiles}/${fps.length}`)}`)
+ log.updateText(`text->markdown ${styleText("gray", `${processedFiles}/${fps.length}`)}`)
return result
}),
).catch(errorHandler)
@@ -208,7 +208,7 @@
markdownToHtmlPromises.map(async (promise) => {
const result = await promise
processedFiles += result.length
- log.updateText(`markdown->html ${chalk.gray(`${processedFiles}/${fps.length}`)}`)
+ log.updateText(`markdown->html ${styleText("gray", `${processedFiles}/${fps.length}`)}`)
return result
}),
).catch(errorHandler)
--
Gitblit v1.10.0