From f80f8e453b25fef97b6c8849000ebc8508f085c5 Mon Sep 17 00:00:00 2001 From: Gravydigger Date: Fri, 18 Oct 2024 10:01:16 +1030 Subject: [PATCH] Updated Katex to use linked stylesheet --- src/layouts/BlogPost.astro | 7 ++++++- tsconfig.json | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/layouts/BlogPost.astro b/src/layouts/BlogPost.astro index bc7aaa3..0d80e48 100644 --- a/src/layouts/BlogPost.astro +++ b/src/layouts/BlogPost.astro @@ -4,7 +4,6 @@ import type { CollectionEntry } from "astro:content"; import BlogHero from "@/components/blog/Hero.astro"; import TOC from "@/components/blog/TOC.astro"; import WebMentions from "@/components/blog/webmentions/index.astro"; -import "@/katex"; // Katex css file import BaseLayout from "./Base.astro"; @@ -30,6 +29,12 @@ const { headings } = await post.render();
+
diff --git a/tsconfig.json b/tsconfig.json index e6558de..ed1ea60 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,8 +10,7 @@ "@/layouts/*": ["src/layouts/*"], "@/utils": ["src/utils/index.ts"], "@/types": ["src/types.ts"], - "@/site-config": ["src/site.config.ts"], - "@/katex": ["node_modules/.pnpm/rehype-katex@7.0.0/node_modules/katex/dist/katex.min.css"] + "@/site-config": ["src/site.config.ts"] } }, "include": ["./.eslintrc.cjs", "**/*"],