-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gatsby-source-contentful] Markdown editor image link formatting issue #3071
Comments
Could you try adding a PR fixing this? It should be straightforward to add a test that reproduces the issue here: https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-remark-copy-linked-files/src/__tests__/index.js |
Yup. I'll give it a go! |
So digging deeper, I'm noticing that this is specifically related to images. In this line of code,
I'm not sure where that's being assigned. |
Ohhhh right — yeah, you shouldn't use |
You're right. That solved the issue. I removed it via Thanks for sorting this out :) |
Another successful Gatsby issue :-D |
@KyleAMathews do you think this plugin removal should be included in the |
yeah, that makes sense — warn that some gatsby-remark-* plugins don't work unless you have a filesystem. This one and gatsby-remark-images I believe. Though we should really fix this one so it doesn't blow up on other markdown sources. There are times you might want to have local markdown along with markdown from Contentful (or some other non-filesystem source) |
That's probably true. I just don't know my way around gatsby enough to fine tune this :( For example, you stated above that we should check if |
We need to do something like we do here:
|
Ok. I'll work on this and submit a PR. |
Gatsby: 1.8.11
Node: 8.9.1
OS: MacOS High Sierra
This is a strange bug and the errors in my terminal were not helpful at all. I finally found the issue to be the way links are used within Contentful's markdown editor. I received the error if links are formatted as normal Markdown links.
[This is a link](https://example.com)
But I did not get the error if links are reference style
[This is a link][1]
[1]: http://example.com
Error in console
This was a little painful to figure out because I had to work through each of my 80 posts to find the cause...
The text was updated successfully, but these errors were encountered: