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

Prism plugin bugfix alt #1491

Merged
merged 5 commits into from Jul 13, 2017
Merged

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Jul 13, 2017

Alternate option for #1488, also resolves issue #1486

Default behavior remains as before, to use a class='language-*' prefix. New behavior allows for a data-language=* alternate.
Snapshot tests added.
@KyleAMathews
Copy link
Contributor

KyleAMathews commented Jul 13, 2017

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jul 13, 2017

Deploy preview ready!

Built with commit d30d1c6

https://deploy-preview-1491--using-drupal.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jul 13, 2017

Deploy preview ready!

Built with commit d30d1c6

https://deploy-preview-1491--gatsbyjs.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jul 13, 2017

Deploy preview ready!

Built with commit d30d1c6

https://deploy-preview-1491--gatsbygram.netlify.com

@bvaughn
Copy link
Contributor Author

bvaughn commented Jul 13, 2017

Look at @KyleAMathews, being mr negativity there. @gatsbybot says "preview ready!" but Kyle says "preview failed!" 🤡

options: {
// Class prefix for <pre> tags containing syntax highlighting;
// Defaults to 'language-'.
// If you use Prism directly within your site,
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps rewrite this sentence slightly so makes clear this option is only needed when loading prismjs into the browser and this is not very common.

@KyleAMathews
Copy link
Contributor

I'd vote for this option as not a lot of people know how to write css targeting data attributes (I'd have to look it up) where modifying the class is a simple find/replace.

@bvaughn
Copy link
Contributor Author

bvaughn commented Jul 13, 2017

I'd vote for this option as not a lot of people know how to write css targeting data attributes (I'd have to look it up) where modifying the class is a simple find/replace.

Sure. Sounds reasonable. My only concern with this was the similarity (in API) to Prism's own custom-class approach (which has a different implementation/impact).

I'll tidy up the comment momentarily.

Not sure what's up with CI. Looks like an NPM mirror was down or something.

@bvaughn
Copy link
Contributor Author

bvaughn commented Jul 13, 2017

Okay! Comments updated. Tested once more locally to confirm the fix. 😄 Let me know if there's anything else needing to be done.

@KyleAMathews
Copy link
Contributor

Sweet! Merging and will be making a new release shortly.

Not sure what's up with CI. Looks like an NPM mirror was down or something.

it's remarkable how often CI and building gatsby example sites fail due to random cloud outages. We're building on a castle of cards.

@KyleAMathews KyleAMathews merged commit d1b72df into gatsbyjs:master Jul 13, 2017
@bvaughn bvaughn deleted the prism-plugin-bugfix-alt branch July 13, 2017 21:26
@jlengstorf
Copy link
Contributor

Hiya @bvaughn! 👋

This is definitely late, but on behalf of the entire Gatsby community, I wanted to say thank you for being here.

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. (We’ve got t-shirts and hats, plus some socks that are really razzing our berries right now.)
  2. If you’re not already part of it, we just invited you to join the Gatsby organization on GitHub. This will add you to our team of maintainers. You’ll receive an email shortly asking you to confirm. By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.

If you have questions, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’.

Thanks again! 💪💜

@bvaughn
Copy link
Contributor Author

bvaughn commented Feb 16, 2019

That's a nice gesture. Thanks, Jason.

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.

None yet

4 participants