summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2023-02-15 22:44:11 +0800
committerGravatar GitHub <noreply@github.com> 2023-02-15 22:44:11 +0800
commit0fbcf838a775d3b07e7c2372888a8aa6c190278e (patch)
treedc6bd54b97dbb36896e5423bc16604044c027047
parent2ace02ece93feda66bba416ee5197363b8dd2988 (diff)
downloadastro-0fbcf838a775d3b07e7c2372888a8aa6c190278e.tar.gz
astro-0fbcf838a775d3b07e7c2372888a8aa6c190278e.tar.zst
astro-0fbcf838a775d3b07e7c2372888a8aa6c190278e.zip
Revert previous mdx breaking change (#6252)
-rw-r--r--.changeset/afraid-rivers-camp.md5
-rw-r--r--packages/integrations/mdx/src/index.ts1
-rw-r--r--packages/integrations/mdx/test/mdx-plugins.test.js2
3 files changed, 6 insertions, 2 deletions
diff --git a/.changeset/afraid-rivers-camp.md b/.changeset/afraid-rivers-camp.md
new file mode 100644
index 000000000..748a699a6
--- /dev/null
+++ b/.changeset/afraid-rivers-camp.md
@@ -0,0 +1,5 @@
+---
+'@astrojs/mdx': patch
+---
+
+Revert previous breaking change
diff --git a/packages/integrations/mdx/src/index.ts b/packages/integrations/mdx/src/index.ts
index 7012849a4..577d073ee 100644
--- a/packages/integrations/mdx/src/index.ts
+++ b/packages/integrations/mdx/src/index.ts
@@ -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 }),
diff --git a/packages/integrations/mdx/test/mdx-plugins.test.js b/packages/integrations/mdx/test/mdx-plugins.test.js
index 139d2042f..a3a871762 100644
--- a/packages/integrations/mdx/test/mdx-plugins.test.js
+++ b/packages/integrations/mdx/test/mdx-plugins.test.js
@@ -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({