Skip to content

Commit 32ee69d

Browse files
feat: add new dependencies for math and accessibility support
- Added rehype-accessible-emojis, rehype-katex, remark-math, and remark-toc to package.json for enhanced content rendering. - Updated main layout to include KaTeX stylesheet for math rendering. - Increased max-width for post layout to improve readability. - Added a new post on compilation principles with detailed notes and structured content.
1 parent 7b17c60 commit 32ee69d

6 files changed

Lines changed: 698 additions & 74 deletions

File tree

astro.config.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
import { defineConfig } from "astro/config";
2+
import remarkMath from "remark-math";
3+
import rehypeKatex from "rehype-katex";
4+
import remarkToc from "remark-toc";
5+
import { rehypeAccessibleEmojis } from "rehype-accessible-emojis";
26

37
import tailwind from "@astrojs/tailwind";
48

59
// https://astro.build/config
610
export default defineConfig({
7-
integrations: [tailwind()],
11+
integrations: [tailwind()],
12+
markdown: {
13+
remarkPlugins: [remarkMath, [remarkToc, { heading: "toc", maxDepth: 5 }]],
14+
rehypePlugins: [rehypeKatex, rehypeAccessibleEmojis],
15+
},
816
});

0 commit comments

Comments
 (0)