Skip to content

Commit

Permalink
initial (#33802)
Browse files Browse the repository at this point in the history
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
(cherry picked from commit a298106)
  • Loading branch information
LekoArts committed Nov 2, 2021
1 parent 54da292 commit 15e5ca4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/gatsby-plugin-mdx/__tests__/gatsby-node.js
Expand Up @@ -63,6 +63,7 @@ describe(`pluginOptionsSchema`, () => {
mediaTypes: [`text/markdown`, `text/x-markdown`, `custom-media/type`],
shouldBlockNodeFromTransformation: node => Boolean(node),
root: `james-holden`,
commonmark: true,
})

expect(isValid).toBe(true)
Expand Down
5 changes: 5 additions & 0 deletions packages/gatsby-plugin-mdx/gatsby-node.js
Expand Up @@ -120,5 +120,10 @@ exports.pluginOptionsSchema = function ({ Joi }) {
.description(
`[deprecated] This is a legacy option that used to define root directory of the project. It was needed to generate a cache directory location. It currently has no effect.`
),
commonmark: Joi.boolean()
.default(false)
.description(
"MDX will be parsed using CommonMark."
),
})
}

0 comments on commit 15e5ca4

Please sign in to comment.