Skip to content

Commit 0a57d03

Browse files
authored
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.
1 parent ebff661 commit 0a57d03

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

quartz/styles/base.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ li,
3939
ol,
4040
ul,
4141
.katex,
42-
.math {
42+
.math,
43+
.typst-doc,
44+
.typst-doc * {
4345
color: var(--darkgray);
4446
fill: var(--darkgray);
4547
hyphens: auto;
@@ -53,7 +55,9 @@ li,
5355
ol,
5456
ul,
5557
.katex,
56-
.math {
58+
.math,
59+
.typst-doc,
60+
.typst-doc * {
5761
overflow-wrap: anywhere;
5862
/* tr and td removed from list of selectors for overflow-wrap, allowing them to use default 'normal' property value */
5963
}

0 commit comments

Comments
 (0)