Revert previous mdx breaking change (#6252)

This commit is contained in:
Bjorn Lu 2023-02-15 22:44:11 +08:00 committed by GitHub
parent 2ace02ece9
commit 0fbcf838a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/mdx': patch
---
Revert previous breaking change

View file

@ -74,7 +74,6 @@ export default function mdx(partialMdxOptions: Partial<MdxOptions> = {}): AstroI
const { data: frontmatter, content: pageContent } = parseFrontmatter(code, id);
const compiled = await mdxCompile(new VFile({ value: pageContent, path: id }), {
...mdxPluginOpts,
elementAttributeNameCase: 'html',
remarkPlugins: [
// Ensure `data.astro` is available to all remark plugins
toRemarkInitializeAstroData({ userFrontmatter: frontmatter }),

View file

@ -63,7 +63,7 @@ describe('MDX plugins', () => {
expect(selectRehypeExample(document)).to.not.be.null;
});
it('supports custom rehype plugins with namespaced attributes', async () => {
it.skip('supports custom rehype plugins with namespaced attributes', async () => {
const fixture = await buildFixture({
integrations: [
mdx({