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

Added a way to configure remark options. #8014

Merged
merged 3 commits into from Sep 10, 2018

Conversation

kakadiadarpan
Copy link
Contributor

@kakadiadarpan kakadiadarpan commented Sep 10, 2018

With remark, now the following options can be provided:

  • gfm
  • commonmark
  • footnotes
  • pedantic
  • blocks

The config can be provided in gatsby-config.js as below:

  plugins: [
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        gfm: false,
        commonmark: false,
        footnotes: false,
        pedantic: false,
        blocks: ["h2"],
     }
  },
// other plugins

Fixes #7992

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.

LGTM

@pieh pieh merged commit e496d30 into gatsbyjs:master Sep 10, 2018
@kakadiadarpan
Copy link
Contributor Author

Thanks for fixing the linting error @pieh! 😄

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.

Passing options to remark (via gatsby-transformer-remark)
2 participants