You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lack of newlines inside components break markdown parsing
When using markdown inside a react component that simply outputs its children wrapped in anything (a section, div) the markdown is not converted to the appropriate component.
Your environment
OS: Fedora 34
Packages: @mdx-js/loader 1.6.22, @next/mdx 10.2.0, next 10.1.3, react 17.0.2
Env: Node 14.15.4, yarn 1.22.10, Brave 1.24.86
Steps to reproduce
This works as expected
<Header>
# Title
Text
</Header>
This does not
<Header>
# Title
Text
</Header>
It is also worth noting that placing a space on the empty line about the title also breaks the code in the same way
Expected behaviour
Actual behaviour
The text was updated successfully, but these errors were encountered:
duplicate of #1312 and #1424, this is how MDX 1 works.
This behavior is changed in version 2 as part of #628 you can find more information on the beta here: #1041
improvements to documentation are welcome!
Lack of newlines inside components break markdown parsing
When using markdown inside a react component that simply outputs its children wrapped in anything (a section, div) the markdown is not converted to the appropriate component.
Your environment
Steps to reproduce
This works as expected
This does not
It is also worth noting that placing a space on the empty line about the title also breaks the code in the same way
Expected behaviour
Actual behaviour
The text was updated successfully, but these errors were encountered: