-
-
Notifications
You must be signed in to change notification settings - Fork 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
Markdown renderer crashes CMS from 2.9.2 onwards #2440
Comments
Damn sorry @marcojakob , I did search but didn't see #2421. It does look the same. I'll add a comment to #2421 with my workaround (i.e. downgrade) and close this as a duplicate of #2421. |
Interesting, I found a newline following frontmatter to crash the CMS as far back as I could go, well before 2.0. Are you certain it worked in 2.9.1? Sent with GitHawk |
@erquhart I'm referring to a newline within the markdown body. It sounds like your issue is slightly different. Yes, downgrading to 2.9.1 reliably fixes my issue (and presumably @marcojakob's). See the screen recording above. |
We're referring to the same issue, a newline following the frontmatter. I fixed it just recently for a post in the Gatsby starter: decaporg/gatsby-starter-decap-cms@a1d1830 Sent with GitHawk |
You can try it in the demo from 2.9.1: https://5cae562f07575f0008d96910--cms-demo.netlify.com/#/collections/posts/new Sent with GitHawk |
Describe the bug
The Markdown renderer crashes the CMS in some cases, from netlify-cms@2.9.2 upwards (currently 2.9.6), but doesn't in 2.9.1
I can reliably reproduce the issue by adding a newline and an image reference, see attached screen recording.
To Reproduce
config.yml
admin/index.html
Then create a new item in the collection with the following markdown including ONE newline above the image (GitHub seems to strip the newline):
One newline above seems to trigger the error, while zero or two newlines does not.
The error is:
Expected behavior
Cute kitten shown.
Screenshots
(Screen recording will load below):
(screen recording will load above)
Applicable Versions:
CMS configuration
See above
Additional context
See above
The text was updated successfully, but these errors were encountered: