Skip to content

Commit

Permalink
fix: astro.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Parsifa1 committed Sep 18, 2024
1 parent 116ec8a commit 10f7fec
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import * as remarkToc from "remark-toc";
import remarkToc from "remark-toc";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
// import remarkCollapse from "remark-collapse";
Expand All @@ -10,7 +10,6 @@ import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import { SITE } from "./src/config";
import icon from "astro-icon";

export default defineConfig({
site: SITE.website,
integrations: [
Expand All @@ -26,11 +25,7 @@ export default defineConfig({
}),
],
markdown: {
remarkPlugins: [
remarkMath,
[remarkToc as unknown as string, { heading: "目录" }],
],

remarkPlugins: [remarkMath, [remarkToc as any, { heading: "目录" }]],
rehypePlugins: [rehypeKatex],
shikiConfig: {
theme: "one-dark-pro",
Expand Down

0 comments on commit 10f7fec

Please sign in to comment.