"<" in Markdown Code element is producing an error. Whenever the HTML element has a nested Markdown CODE, it is failing if it contains "<" Mark.
MDX Playground
https://mdxjs.com/playground/
Paste in playground:
<h1>`for (let i = 0; i < 9; i++)`</h1>
No error, it should render just fine

@Exelord your example doesn't have a code element.
MDX needs a newline to go from a JSX block back to a markdown block.
See this for an example of how the content is parsed https://astexplorer.net/#/gist/46549a94f05978e6f75bd6c892d56419/561c25a9b1253264b63637a329289ee088f1549c
the syntax you are looking for is
````markdown
````
V2 would make this easier too btw! There your code should work
I see... This is super frustrating then. My case is to have content like this:
<h1>
Hey this is an inline code: `some text`
</h1>
And I expected the content of the element to be parsed as markdown. Is there any doc mentioning the new line wrapper? For editors, this can bring a lot of bugs as I guess this is not a natural way of writing templates.
Most helpful comment
https://github.com/mdx-js/mdx/pull/1039