-
-
Notifications
You must be signed in to change notification settings - Fork 874
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
Typescript compatibility with rehype-raw v7 #763
Comments
Duplicate of unifiedjs/unified#228 |
This comment has been minimized.
This comment has been minimized.
The updates are making their way through several hundred packages, for now pin the previous major until the new |
Hi! Thanks for taking the time to contribute! Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related. Thanks, |
Initial checklist
Affected packages and versions
react-markdown 8.0.7 + rehype-raw 7.0.0
Link to runnable example
https://codesandbox.io/s/beautiful-sound-vthj8w?file=/src/App.tsx
Steps to reproduce
Just try to use
rehype-raw
v7 withreact-markdown
v8.0.7. I don't know why but the codesandbox version does not reproduce the issue 🙄 but with the same environment locally as in the sandbox, I get it.Issue seems to be (as far as I can tell) because
rehype-raw
v7 usesvfile
v6 and/orunified
v11.Expected behavior
TS compiles
Actual behavior
TS errors
Runtime
Node v17
Package manager
npm 8
OS
macOS
Build and bundle tools
Vite
The text was updated successfully, but these errors were encountered: