feat: initial class history template

This commit is contained in:
hanyixuanten committed 2026-10-25 11:23:17 +00:00
commit 92fa0f8f37
33 files changed
+10714

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
// @ts-check
import { defineConfig } from 'astro/config';
import { satteri } from '@astrojs/markdown-satteri';
import markdownReveal from './src/plugins/markdown-reveal.mjs';
// https://astro.build/config
export default defineConfig({
markdown: {
// Astro 7 的默认 markdown 处理器是 Sätteri(@astrojs/markdown-remark
// 已不再默认安装)。这里在它的 hast 阶段挂上插件,让 markdown 转
// HTML 时自动给正文段落补 .reveal,源文件不用手写 class。
processor: satteri({ features: { rawHtml: true }, hastPlugins: [markdownReveal] }),
},
});