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

feat(gatsby-transformer-remark): Allow for multiple different remark sources #7512

Merged
merged 4 commits into from
Mar 13, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
capitalize wordcount type
  • Loading branch information
wardpeet committed Mar 13, 2019
commit 9c14034961811f8a07a8b44988d690424ccff477
4 changes: 2 additions & 2 deletions packages/gatsby-transformer-remark/src/extend-node-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const ExcerptFormats = new GraphQLEnumType({
},
})

const wordCountType = new GraphQLObjectType({
const WordCountType = new GraphQLObjectType({
name: `wordCount`,
fields: {
paragraphs: {
Expand Down Expand Up @@ -631,7 +631,7 @@ module.exports = (
},
// TODO add support for non-latin languages https://github.com/wooorm/remark/issues/251#issuecomment-296731071
wordCount: {
type: wordCountType,
type: WordCountType,
resolve(markdownNode) {
let counts = {}

Expand Down