Skip to content

Commit

Permalink
feat: update astro config
Browse files Browse the repository at this point in the history
  • Loading branch information
staticWagomU committed Sep 18, 2024
1 parent df19169 commit 9ff0cde
Show file tree
Hide file tree
Showing 2 changed files with 185 additions and 5 deletions.
7 changes: 2 additions & 5 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import { defineConfig } from "astro/config";
import remarkBreaks from "remark-breaks";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";


// https://astro.build/config
import tailwind from "@astrojs/tailwind";
import codeBlockPlugin from "./tools/remark-code-quote";
import wrapH2WithSection from "./tools/rehype-wrap-h2-with-section";

// https://astro.build/config
Expand All @@ -17,7 +14,7 @@ export default defineConfig({
plugins: []
},
markdown: {
remarkPlugins: [remarkBreaks],
remarkPlugins: [remarkBreaks, codeBlockPlugin],
rehypePlugins: [wrapH2WithSection],
shikiConfig: {
theme: "github-light"
Expand Down
183 changes: 183 additions & 0 deletions tools/remark-code-quote/pnpm-lock.yaml

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

0 comments on commit 9ff0cde

Please sign in to comment.