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
remark-break not working, when passed as remarkOptions in next-mdx-remote.
I am using next-mdx-remote to parse my markdown from a headless CMS.
I created an issue there, but the problem seems mdx related. hashicorp/next-mdx-remote#177
import breaks from "remark-breaks"; ... const mdxSource = await serialize(source, { mdxOptions: { remarkPlugins: [breaks], }, })
Parse markdown with line breaks.
One line break <br> should appear in parsed html.
<br>
It doesn't.
The text was updated successfully, but these errors were encountered:
remark-breaks works with the version of MDX used in next-mdx-remote (1.6.x https://github.com/hashicorp/next-mdx-remote/blob/452755393f2bcadf1807f6398bf1429069acba42/package.json#L10) Here is a running example showing the versions are compatible https://codesandbox.io/s/distracted-wescoff-3rde8?file=/src/App.js
remark-breaks
next-mdx-remote
It may be related to remark-breaksv3 being ESM https://github.com/remarkjs/remark-breaks/releases/tag/3.0.0, until recently (vercel/next.js#27069) Next has had issues loading ESM. If there are ESM related warnings/errors shown in the console consider either:
If no ESM related errors are thrown, this may be a bug in how next-mdx-remote handles plugins.
Sorry, something went wrong.
No branches or pull requests
Subject of the issue
remark-break not working, when passed as remarkOptions in next-mdx-remote.
I am using next-mdx-remote to parse my markdown from a headless CMS.
I created an issue there, but the problem seems mdx related.
hashicorp/next-mdx-remote#177
Your environment
Steps to reproduce
Parse markdown with line breaks.
Expected behaviour
One line break
<br>
should appear in parsed html.Actual behaviour
It doesn't.
The text was updated successfully, but these errors were encountered: