-
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-transformer-remark use gray-matter excerpt #2794
Comments
This is the relevant code
|
Okay! It looks like graymatter accepts an object as a second parameter after Sorry if I'm asking a lot. I'm new to working with Gatsby |
Just noticed this. gatsby-transformer-remark relies version 2.1 of graymatter, but the excerpt options were added in version 3.0. I tried updating it in the plugin and tests seem to pass after updating the snapshot |
Oh sweet! Would you like to put together a PR that upgrades gray-matter and documents how to add excerpt support? You'd also need to modify the existing excerpt functionality to check if there's an excerpt already set and use that instead of generating a new one
|
Sure, I can take a look at that! |
Bump, any way to change the excerpt pruneLength from the 140 default? |
We should close this since it was taken care of in this PR #2883. @fxfactorial You can updated the pruneLength in your graphql https://using-remark.gatsbyjs.org/excerpts/ |
appreciate it!
… On Apr 6, 2018, at 10:52 AM, Ben Wilcox ***@***.***> wrote:
We should close this since it was taken care of in this PR #2883 <#2883>.
@fxfactorial <https://github.com/fxfactorial> You can updated the pruneLength in your graphql https://using-remark.gatsbyjs.org/excerpts/ <https://using-remark.gatsbyjs.org/excerpts/>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2794 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AC5WkAMxN-VATQmvItpDwOQiFSvM41xzks5tl6t4gaJpZM4QSMmW>.
|
Closing this issue, as this was already resolved as mentioned by @reccanti |
I’m trying to grab excerpts from my markdown files up to a specified separator, similar to how they’re handled by graymatter and jekyll link. Seeing as how this plugin uses graymatter under-the-hood, is there any way to access this functionality?
gatsby-transformer-remark version - 1.7.19
gatsby version - 1.9.73
The text was updated successfully, but these errors were encountered: