From 3c58c7c1a03d27aa181a36f69701f748ace6a21a Mon Sep 17 00:00:00 2001 From: wallpants <47203170+wallpants@users.noreply.github.com> Date: Thu, 29 Jan 2026 14:13:32 -0600 Subject: [PATCH] fix(docs): fix features.md rendering by adding katex css --- docs/build.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/build.ts b/docs/build.ts index 976e2b9..b0d821d 100644 --- a/docs/build.ts +++ b/docs/build.ts @@ -9,8 +9,11 @@ const readme = await Bun.file(readmePath).text(); const featuresPath = import.meta.dir + "/features.md"; const features = await Bun.file(featuresPath).text(); -const cssPath = import.meta.dir + "/../src/css/styles.css"; -const css = await Bun.file(cssPath).text(); +const baseCssPath = import.meta.dir + "/../src/css/styles.css"; +const baseCss = await Bun.file(baseCssPath).text(); + +const katexCssPath = import.meta.dir + "/../node_modules/katex/dist/katex.min.css"; +const katexCss = await Bun.file(katexCssPath).text(); const pantsdown = new Pantsdown(); const { html, javascript } = pantsdown.parse(readme + features); @@ -20,7 +23,8 @@ const index = (theme: "dark" | "light") => ` - + +