mirror of
https://github.com/Vb-Lg/class-history-template.git
synced 2026-11-03 16:26:40 +00:00
15 lines
624 B
JavaScript
15 lines
624 B
JavaScript
// @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] }),
|
||
},
|
||
});
|