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
MDX renderer fails to apply custom delete (del) component #801
Comments
Thanks for reporting! This definitely looks like a bug. Do you mind opening up a PR with your failing tests @markmichon? That way we could use that as a starting point to get a fix in. |
@markmichon @johno I found some issues in the test cases and created a PR that proofs that the del works also with custom components: #825 I am not sure if we really need the tests in the repo this was just a proof that it works. |
@Luiginator There's a good chance that my tests may be flawed since I'm not entirely sure where the problem is, but the issue is that mdx (or somewhere up the chain) is expecting The expected outcome would be passing in a component mapped to |
@markmichon Ah sorry you are right. I did not see the documentation you linked, thank you! @johnletey Is there any chance that the documentation for this is wrong? There does not exist a |
There’s a new release candidate out for v2. See more on the website for that: https://v2.mdxjs.com. |
Custom delete component fails to render
First ran into this over in system-ui/theme-ui#401 where applying a custom delete component failed to render when passed into MDXRenderer's component prop. MDX rendered a
del
, but not the custom one.I've tried tracking down exactly where the issue happens, but only managed to get a few failing tests going in mdx-js and mdx-js/react.
Steps to reproduce / Expected / Etc
Here's a commit with the two failing tests, or see the input/output below.
For mdx core:
Similar deal with @mdx-js/react:
I suspect it's further up the chain somewhere, so maybe someone with better knowledge of the ecosystem can hunt it down or point me in the right direction. Thanks!
The text was updated successfully, but these errors were encountered: