2b76ee8d75
* feat: add astro/config entrypoint * chore: update examples to use `defineConfig` util * chore: prettier fix * chore: add changeset
18 lines
557 B
JavaScript
18 lines
557 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import astroRemark from '@astrojs/markdown-remark';
|
|
import addClasses from './add-classes.mjs';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
// Enable Custom Markdown options, plugins, etc.
|
|
renderers: [],
|
|
markdownOptions: {
|
|
render: [
|
|
astroRemark,
|
|
{
|
|
remarkPlugins: ['remark-code-titles'],
|
|
rehypePlugins: [['rehype-autolink-headings', { behavior: 'prepend' }], ['rehype-toc', { headings: ['h2', 'h3'] }], [addClasses, { 'h1,h2,h3': 'title' }], 'rehype-slug'],
|
|
},
|
|
],
|
|
},
|
|
});
|