e2019be6ff
* feat: make user frontmatter accessible in md * test: new frontmatter injection * refactor: move injection utils to remark pkg * fix: add dist/internal to remark exports * feat: update frontmater injection in mdx * tests: new mdx injection * chore: changeset * chore: simplify frontmatter destructuring * fix: remove old _internal references * refactor: injectedFrontmatter -> remarkPluginFrontmatter * docs: add content collections change * chore: changeset heading levels
12 lines
387 B
JavaScript
12 lines
387 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import mdx from '@astrojs/mdx';
|
|
import { rehypeReadingTime, remarkDescription, remarkTitle } from './src/markdown-plugins.mjs';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: 'https://astro.build/',
|
|
integrations: [mdx({
|
|
remarkPlugins: [remarkTitle, remarkDescription],
|
|
rehypePlugins: [rehypeReadingTime],
|
|
})],
|
|
});
|