Skip to content

Commit

Permalink
chore: install katex using npm instead of CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
lxchapu committed May 27, 2024
1 parent 9773aba commit 19dfa58
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"framer-motion": "^11.1.5",
"hastscript": "^9.0.0",
"jotai": "^2.8.0",
"katex": "^0.16.10",
"lodash-es": "^4.17.21",
"mdast-util-to-string": "^4.0.0",
"qrcode.react": "^3.1.0",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/components/head/CommonHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,4 @@ const titleWithSiteSuffix = title === site.title ? title : `${title} - ${site.ti
type="application/rss+xml"
title={site.title}
href={new URL('/rss.xml', Astro.url)}
/>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" />
/>
1 change: 1 addition & 0 deletions src/layouts/MarkdownLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { BackToTopFAB } from '@/components/BackToTopFAB'
import { Provider } from '@/components/provider/Provider'
import { ToastContainer } from '@/components/ToastContainer'
import { ModalStack } from '@/components/ui/modal'
import 'katex/dist/katex.min.css'
interface Props {
title: string
Expand Down

0 comments on commit 19dfa58

Please sign in to comment.