CRLF breaks importing components when used with front matter
See original GitHub issueHi there, great project!
When I try to import a component below front matter like so:
---
title: Example
description: This is an example
---
import { MDXBreadboard } from 'mdx-breadboard'
It sometimes throws an error:
Uncaught ReferenceError: MDXBreadboard is not defined
When I remove the front matter, the component seems to work just fine.
Any suggestions?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10
Top Results From Across the Web
IJ05781: When user hits enter to change line description ... - IBM
Programs that attempt to import projects from text files may use tabs as field delimiters and line breaks (CRLF) to determine end of...
Read more >doesn't match CRLF · Issue #244 · rust-lang/regex - GitHub
I created a regex with multi_line set to true, but after debugging why the regex was matching in a unittest but not in...
Read more >ER Import file with either LF or CRLF line break
Hello,. I'm trying to import a txt file with ER. When I build the format I have to choose what kind of line...
Read more >MDX and React - Docusaurus
Apart from importing a component and exporting a component, a third way to use a component in MDX is to register it to...
Read more >How to properly format your logo carriage return (CR LF to LF)
Once you select View > Show Symbol > Show End of Line you can see the CR LF characters visually. You can then...
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
Thanks for figuring that out. If you can do a PR I’d be happy to merge it, otherwise I’ll try and put a fix together once I have some time.
Closing this issue as I’ve deprecated mdxc in favor of https://github.com/mdx-js/mdx