Files

15 lines
624 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// @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] }),
},
});