mirror of
https://github.com/Vb-Lg/class-history-template.git
synced 2026-11-03 17:36:47 +00:00
feat: initial class history template
This commit is contained in:
commit
92fa0f8f37
33 files changed
+10714
No files matched your search
@@ -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] }),
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user