markdown as props.children in a custom component #2569
-
Hi,
In my CustomComponent implementation I was getting as However in my current implementation which uses mdx v3, I get as Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That is markdown interleaving, it is intentional and has been the default for years #628 |
Beta Was this translation helpful? Give feedback.
-
If you’re interested in the raw text content, you can use a JSX expression with a string literal. # some markdown
<CustomComponent>
{'This is **markdown** text'}
</CustomComponent>
## some other markup |
Beta Was this translation helpful? Give feedback.
That is markdown interleaving, it is intentional and has been the default for years #628
You can find documentation on the rules here: https://mdxjs.com/docs/what-is-mdx/#interleaving