Imported MDX breaks on empty lines
See original GitHub issueGiven MDX like:
# Title for this section
Paragraph of text #1...
Paragraph of text #2...
If I use this code directly in the content/pages
folder, it displays as expected. But if I move the code to content/blocks/example.mdx
and use <Block src="example" />
on a page, then all that displays is the first line of MDX (the # Title for this section
). All of the subsequent text is getting chopped off without any error or message why. Same thing happens if you import the file.
Not sure if this is a greater issue with gatsby-plugin-mdx
or not, but I would have expected this to work. Otherwise awesome library though!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Two blank lines within a fenced code block terminates ordered list ...
Fenced code blocks within a number bullet point break if they contain more one new-line in a row. Your environment. OS: macOS Mojave...
Read more >Troubleshooting MDX
If there is a closing brace somewhere, make sure that the braces are each on their own lines with no text before the...
Read more >Guide to Writing MDX and Markdown | Chicago Docs
Guide to the syntax of MDX and Markdown. ... To ensure proper rendering, add a blank line above and below the Markdown text,...
Read more >Blogging with Gatsby & MDX - React Training
MDX is a superset of Markdown that lets you import and render React components! Check it out: import CustomComponent from '.
Read more >MDX and React - Docusaurus
This feature is experimental and might be subject to breaking API changes in the future. Importing Markdown. You can use Markdown files as ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Found a fix. I’ll tag a new release. As a temporary fix you can wrap the markdown in a
Div
:Yep! All good, everything working as expected now. Thanks a bunch for the quick fix.