From cf7c555ab15dac6e8aeb45261465ff49bd8c1e8c Mon Sep 17 00:00:00 2001 From: Lumen Yang Date: Thu, 14 Aug 2025 12:15:12 +0200 Subject: [PATCH] feat(typst): invert the math equation for typst rendered equation in darkmode There was no dark mode support for quartz equations in typst. This commit implements such support in order for proper render of typst math equation in dark mode. --- quartz/styles/base.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss index b7037fa1c..8bd1123ef 100644 --- a/quartz/styles/base.scss +++ b/quartz/styles/base.scss @@ -39,7 +39,9 @@ li, ol, ul, .katex, -.math { +.math, +.typst-doc, +.typst-doc * { color: var(--darkgray); fill: var(--darkgray); hyphens: auto; @@ -53,7 +55,9 @@ li, ol, ul, .katex, -.math { +.math, +.typst-doc, +.typst-doc * { overflow-wrap: anywhere; /* tr and td removed from list of selectors for overflow-wrap, allowing them to use default 'normal' property value */ }