Add remark-toc and remark-collapse packages

This commit is contained in:
Sat Naing
2022-09-17 13:56:59 +06:30
parent 14f23f2516
commit 5e534e65b2
3 changed files with 217 additions and 8 deletions
+15 -6
View File
@@ -1,13 +1,22 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import remarkToc from "remark-toc";
import remarkCollapse from "remark-collapse";
// https://astro.build/config
export default defineConfig({
site: "https://astro-paper.pages.dev/",
integrations: [tailwind({
config: {
applyBaseStyles: false
}
}), react()]
});
integrations: [
tailwind({
config: {
applyBaseStyles: false,
},
}),
react(),
],
markdown: {
remarkPlugins: [remarkToc, [remarkCollapse, { test: "Table of contents" }]],
extendDefaultPlugins: true,
},
});