2021-08-23 16:07:03 -05:00
|
|
|
// Full Astro Configuration API Documentation:
|
|
|
|
// https://docs.astro.build/reference/configuration-reference
|
|
|
|
|
|
|
|
// @type-check enabled!
|
|
|
|
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
|
|
|
|
// helpful tooltips, and warnings if your exported object is invalid.
|
|
|
|
// You can disable this by removing "@ts-check" and `@type` comments below.
|
|
|
|
|
|
|
|
// @ts-check
|
|
|
|
export default /** @type {import('astro').AstroUserConfig} */ ({
|
|
|
|
// Enable Custom Markdown options, plugins, etc.
|
2021-07-01 11:55:22 -05:00
|
|
|
markdownOptions: {
|
2021-08-25 07:17:45 -05:00
|
|
|
remarkPlugins: ['remark-code-titles', 'remark-slug'],
|
2021-07-01 11:55:22 -05:00
|
|
|
rehypePlugins: [
|
2021-08-25 07:17:45 -05:00
|
|
|
['rehype-autolink-headings', { behavior: 'prepend' }],
|
2021-07-19 23:07:49 -05:00
|
|
|
['rehype-toc', { headings: ['h2', 'h3'] }],
|
|
|
|
['rehype-add-classes', { 'h1,h2,h3': 'title' }],
|
|
|
|
],
|
2021-07-01 11:55:22 -05:00
|
|
|
},
|
2021-08-23 16:07:03 -05:00
|
|
|
});
|