Skip to content

Commit 8298088

Browse files
committed
clean up code and css
1 parent 244d2f8 commit 8298088

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

content/thoughts/setup.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ svg {
3232
Genuinely, why? I was considering switching to KaTeX but ultimately decided against it, opting for a [stupid, vibe-coded fix](https://github.com/xyzqm/garden/commit/4933c0ab9cece1458f0d5261876bb346e1e97f5d#diff-daf6fe07165fdca40b7f30f223cfc1d94d958b4b6803bbb9772fc0c667f9129e) (see `tikz.ts`) instead that basically sets `fill = currentColor` for all SVG elements that don't currently have `fill` set. Truly 🤮
3333

3434
### UPD: 10/19
35-
Replaced vibe-coded fix with [this](https://github.com/xyzqm/garden/blob/f2d3b367865f93342de45989c3cdbc6517d89705/quartz/styles/custom.scss#L15) instead, hopefully everything works now
35+
~~Replaced vibe-coded fix with [this](https://github.com/xyzqm/garden/blob/f2d3b367865f93342de45989c3cdbc6517d89705/quartz/styles/custom.scss#L15) instead, hopefully everything works now~~
36+
37+
I ended up just converting all the typst blocks into latex first, then using `rehype-katex` afterwards ([code](https://github.com/xyzqm/garden/blob/244d2f8f02b584e5964a4f85669756d018a46afb/quartz/plugins/transformers/latex.ts#L22)) since using typst also created really faulty reading time estimates, and at that point it was just too much of a hassle

quartz/plugins/transformers/latex.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export const Latex: QuartzTransformerPlugin = () => {
2121
return (tree) => {
2222
// using tex2typst, convert all math blocks returned by remarkMath to latex
2323
visit(tree, "element", (node: Element) => {
24-
// console.log(node.properties.className)
2524
const classes = Array.isArray(node.properties.className)
2625
? node.properties.className
2726
: []

quartz/styles/custom.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ img {
1212
text-align: center;
1313
}
1414

15-
.tikz svg > g {
16-
fill: currentColor;
17-
}
18-
1915
.callout.is-collapsed {
2016
padding-bottom: 1rem;
2117
.callout-content {

0 commit comments

Comments
 (0)