mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
6386c14d00
* update examples * add initial integrations * update tests * update astro * update ci * get final tests working * update injectelement todo * update ben code review * respond to final code review feedback
17 lines
541 B
JavaScript
17 lines
541 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.
|
|
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'],
|
|
},
|
|
],
|
|
},
|
|
});
|