We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The transform content example in the docs yields the expected output when running against remark 12 or below ; but a different output with remark 13
This is not a place to ask questions. For that, go to Discussions
See repos at https://github.com/jvelo/mdx-transform-remark13
Running node index.js yields:
node index.js
{ type: 'root', children: [ { type: 'paragraph', children: [Array], position: [Object] }, { type: 'paragraph', children: [Array], position: [Object] }, { type: 'heading', depth: 1, children: [Array], position: [Object] }, { type: 'paragraph', children: [Array], position: [Object] }, { type: 'html', value: '<Component />', position: [Object] } ], position: { start: { line: 1, column: 1, offset: 0 }, end: { line: 12, column: 1, offset: 107 } } }
While running it against remark 12.x yields the expected
{ type: 'root', children: [ { type: 'import', value: "import Component from 'Component'", position: [Position] }, { type: 'export', value: "export const meta = {\nprop: 'value'\n}", position: [Position] }, { type: 'heading', depth: 1, children: [Array], position: [Position] }, { type: 'paragraph', children: [Array], position: [Position] }, { type: 'jsx', value: '<Component />', position: [Position] } ], position: { start: { line: 1, column: 1, offset: 0 }, end: { line: 12, column: 1, offset: 107 } } }
The text was updated successfully, but these errors were encountered:
At a lower level looks like the incompatibility lays between remark-parse 8.x vs. 9.x
remark-parse
Sorry, something went wrong.
Can confirm that it works with 8.x and not with 9.x
mdx 2 (in beta) supports remark 13+, you can find out more here: #1041 mdx 1 still needs remark 12.
Hi, just running into this issue.
The latest version v2.0.0-next.8 seems still use remark-parse@8 (remark@12).
In which branch does remark@13 compatible version land? Thanks!
Update: It hasn't been published to NPM yet. Code here:
mdx/packages/remark-mdx/package.json
Line 47 in 39b6f23
No branches or pull requests
Subject of the issue
The transform content example in the docs yields the expected output when running against remark 12 or below ; but a different output with remark 13
This is not a place to ask questions. For that, go to Discussions
Your environment
Steps to reproduce
See repos at https://github.com/jvelo/mdx-transform-remark13
Running
node index.js
yields:Expected behaviour
While running it against remark 12.x yields the expected
The text was updated successfully, but these errors were encountered: