mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
37 lines
585 B
JavaScript
37 lines
585 B
JavaScript
import mdx from '@astrojs/mdx';
|
|
|
|
export default {
|
|
integrations: [
|
|
mdx({
|
|
optimize: {
|
|
ignoreElementNames: ['strong'],
|
|
},
|
|
}),
|
|
],
|
|
markdown: {
|
|
rehypePlugins: [
|
|
() => {
|
|
return (tree) => {
|
|
tree.children.push({
|
|
type: 'root',
|
|
children: [
|
|
{
|
|
type: 'element',
|
|
tagName: 'p',
|
|
properties: {
|
|
id: 'injected-root-hast',
|
|
},
|
|
children: [
|
|
{
|
|
type: 'text',
|
|
value: 'Injected root hast from rehype plugin',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|
|
};
|
|
},
|
|
],
|
|
},
|
|
};
|