-
Notifications
You must be signed in to change notification settings - Fork 6
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
Problem with embedding inside react-markdown due to async / await #123
Comments
6 tasks
@simonv3 how did you tweak the code so it works without async? |
This is what my final file looks like:
|
Once remarkjs/react-markdown#682 is merged & released, this plugin will run out of the box with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
remark-embedder-core
version: 3.0.1node
version: v16.19.0yarn
version: 1.22.19Relevant code or config
What you did: I embedded remarkEmbedder in
react-markdown
.What happened:
It fails with error:
Problem description:
This happens because react-markdown does not support async plugins.
Suggested solution:
For the basic functionality of remarkEmbedder it doesn't look like it's necessary to do async. Is there a way to set this up so that it's not required?
When I strip the async functionality from the code in my own local copy of index.js it works fine.
The text was updated successfully, but these errors were encountered: