@astrojs/mdx 0.16.1 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- @astrojs/mdx:build: cache hit, replaying output 14d153814201eafa
2
- @astrojs/mdx:build: 
3
- @astrojs/mdx:build: > @astrojs/mdx@0.16.1 build /home/runner/work/astro/astro/packages/integrations/mdx
4
- @astrojs/mdx:build: > astro-scripts build "src/**/*.ts" && tsc
5
- @astrojs/mdx:build: 
1
+ @astrojs/mdx:build: cache hit, replaying output 9c4b0b19660fad84
2
+ @astrojs/mdx:build: 
3
+ @astrojs/mdx:build: > @astrojs/mdx@0.16.2 build /home/runner/work/astro/astro/packages/integrations/mdx
4
+ @astrojs/mdx:build: > astro-scripts build "src/**/*.ts" && tsc
5
+ @astrojs/mdx:build: 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @astrojs/mdx
2
2
 
3
+ ## 0.16.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#6252](https://github.com/withastro/astro/pull/6252) [`0fbcf838a`](https://github.com/withastro/astro/commit/0fbcf838a775d3b07e7c2372888a8aa6c190278e) Thanks [@bluwy](https://github.com/bluwy)! - Revert previous breaking change
8
+
3
9
  ## 0.16.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -48,7 +48,6 @@ function mdx(partialMdxOptions = {}) {
48
48
  const { data: frontmatter, content: pageContent } = parseFrontmatter(code, id);
49
49
  const compiled = await mdxCompile(new VFile({ value: pageContent, path: id }), {
50
50
  ...mdxPluginOpts,
51
- elementAttributeNameCase: "html",
52
51
  remarkPlugins: [
53
52
  toRemarkInitializeAstroData({ userFrontmatter: frontmatter }),
54
53
  ...mdxPluginOpts.remarkPlugins ?? []
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrojs/mdx",
3
3
  "description": "Use MDX within Astro",
4
- "version": "0.16.1",
4
+ "version": "0.16.2",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",
package/src/index.ts CHANGED
@@ -74,7 +74,6 @@ export default function mdx(partialMdxOptions: Partial<MdxOptions> = {}): AstroI
74
74
  const { data: frontmatter, content: pageContent } = parseFrontmatter(code, id);
75
75
  const compiled = await mdxCompile(new VFile({ value: pageContent, path: id }), {
76
76
  ...mdxPluginOpts,
77
- elementAttributeNameCase: 'html',
78
77
  remarkPlugins: [
79
78
  // Ensure `data.astro` is available to all remark plugins
80
79
  toRemarkInitializeAstroData({ userFrontmatter: frontmatter }),
@@ -63,7 +63,7 @@ describe('MDX plugins', () => {
63
63
  expect(selectRehypeExample(document)).to.not.be.null;
64
64
  });
65
65
 
66
- it('supports custom rehype plugins with namespaced attributes', async () => {
66
+ it.skip('supports custom rehype plugins with namespaced attributes', async () => {
67
67
  const fixture = await buildFixture({
68
68
  integrations: [
69
69
  mdx({