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(gatsby-remark-images): Fix style-creation in gatsby-remark-images #8864

Merged
merged 1 commit into from
Oct 8, 2018

Conversation

emilbruckner
Copy link
Contributor

Remove unnecessary semicolon & don’t use null in String

When using rehype-react (as in Using remark: Custom components) together with gatsby-remark-images with options: showCaptions: true, sites crash, because the styles don’t make sense then. Even the old test-snapshot reflected that there would have been two semicolons, one after another.

That extra semicolon isn’t necessary, since added styles should contain their own semicolon anyway (See the plugin’s readme).

Remove unnecessary semicolon & don’t use null in String
@emilbruckner
Copy link
Contributor Author

I see that some snapshots don’t match on Environment: example=gatsbygram, buildon=commit.
Is that my fault? I don’t really understand where this change could be coming from

@pieh
Copy link
Contributor

pieh commented Oct 8, 2018

I see that some snapshots don’t match on Environment: example=gatsbygram, buildon=commit.
Is that my fault?

It's not your fault - one of previously merged PRs did add snapshot snapshot that contains file path (which will be different for windows and non-windows platforms). There are 2 alternative PRs with fix for that #8906 and #8836

Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @emilbruckner!

@pieh pieh merged commit 9944450 into gatsbyjs:master Oct 8, 2018
@gatsbot
Copy link

gatsbot bot commented Oct 8, 2018

Holy buckets, @emilbruckner — we just merged your PR to Gatsby! 💪💜

Gatsby is built by awesome people like you. Let us say “thanks” in two ways:

  1. We’d like to send you some Gatsby swag. As a token of our appreciation, you can go to the Gatsby Swag Store and log in with your GitHub account to get a coupon code good for one free piece of swag. (Currently we’ve got a couple t-shirts available, plus some socks that are really razzing our berries right now.)
  2. We just invited you to join the Gatsby organization on GitHub. This will add you to our team of maintainers. Accept the invite by visiting https://github.com/orgs/gatsbyjs/invitation. By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.

If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’.

Thanks again!

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.

2 participants