feat(typst): invert the math equation for typst rendered equation in darkmode (#2095)

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.
This commit is contained in:
Lumen Yang
2025-08-21 18:37:59 +02:00
committed by GitHub
parent ebff6617bb
commit 0a57d032a7

View File

@@ -39,7 +39,9 @@ li,
ol, ol,
ul, ul,
.katex, .katex,
.math { .math,
.typst-doc,
.typst-doc * {
color: var(--darkgray); color: var(--darkgray);
fill: var(--darkgray); fill: var(--darkgray);
hyphens: auto; hyphens: auto;
@@ -53,7 +55,9 @@ li,
ol, ol,
ul, ul,
.katex, .katex,
.math { .math,
.typst-doc,
.typst-doc * {
overflow-wrap: anywhere; overflow-wrap: anywhere;
/* tr and td removed from list of selectors for overflow-wrap, allowing them to use default 'normal' property value */ /* tr and td removed from list of selectors for overflow-wrap, allowing them to use default 'normal' property value */
} }