-
-
Notifications
You must be signed in to change notification settings - Fork 848
New issue
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
ReactMarkdown fails when using in combination with rehype-raw #696
Comments
It's a rehype plugin. Not a remark plugin. Rehype plugins go in rehypePlugins. Remark plugins go in remarkPlugins |
Hi team! Could you describe why this has been marked as wontfix? Thanks, |
@wooorm Thank you so much! Typical dev mistake haha 😅 |
I'm hitting the same issue and I'm very curious if anyone worked around it. I'm using examples from react-markdown's readme which fails:
|
@kirs sorry you ran into a spot of trouble. I'm going to keep this thread closed, and lock it, as it is already resolved in #696 (comment) If you'd like help debugging your setup, feel free to open a Q&A thread https://github.com/orgs/remarkjs/discussions/categories/q-a |
Initial checklist
Affected packages and versions
react-markdown: 8.0.3, rehype-raw: 6.1.1
Link to runnable example
https://codesandbox.io/s/upbeat-field-uj0lid?file=/src/App.js
Steps to reproduce
I've been trying to make markdown render MDX html and jsx tags using
rehype-raw
and i get the following error:Cannot compile 'html' node
.Basically i followed the example laid out in the documentation:
Here is a simple example:
Link to CodeSandbox example
I've also asked a question on Stack overflow
Expected behavior
I expect it to work as intended and render html tags instead of rendering them as string.
Actual behavior
It throws an error
Cannot compile 'html' node
.Runtime
No response
Package manager
No response
OS
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: