Skip to content
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

fix null on markdown image alt #1778

Merged
merged 2 commits into from
Oct 26, 2018

Conversation

leonardodino
Copy link
Contributor

Summary

closes #956
was getting ![null](url) on my markdowns, when not entering any text 🐛
made the one of the image serializers mirror another one, from this very repository.

Test plan

  1. manually added markdown line and snapshot.
  2. yarn jest, it breaks (sending null as when empty)
  3. fixed it! 💪

before:

@@ -22,9 +22,9 @@
- <p>![](https://pbs.twimg.com/profile_images/678903331176214528/TQTdqGwD.jpg)</p>",
+ <p>![null](https://pbs.twimg.com/profile_images/678903331176214528/TQTdqGwD.jpg)</p>",

after: passes.

A picture of a cute animal (not mandatory but encouraged)

null

@verythorough
Copy link
Contributor

verythorough commented Sep 28, 2018

Deploy preview for netlify-cms-www ready!

Built with commit ff659f5

https://deploy-preview-1778--netlify-cms-www.netlify.com

@verythorough
Copy link
Contributor

verythorough commented Sep 28, 2018

Deploy preview for cms-demo ready!

Built with commit ff659f5

https://deploy-preview-1778--cms-demo.netlify.com

@erquhart
Copy link
Contributor

Looks great, thanks!

@erquhart erquhart merged commit 9b72419 into decaporg:master Oct 26, 2018
@leonardodino leonardodino deleted the fix-null-image-alt branch November 15, 2018 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image alt text in markdown widget defaults to null
3 participants