We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8d42b1 commit 3bca15aCopy full SHA for 3bca15a
packages/gatsby-plugin-mdx/src/frontmatter.ts
@@ -10,7 +10,19 @@ export function parseFrontmatter(
10
return cacheMap.get(cacheKey)
11
}
12
13
- const { content, data } = grayMatter(source)
+ const { content, data } = grayMatter(source, {
14
+ language: `yaml`,
15
+ // Disable JS(ON) frontmatter parsing.
16
+ // See: https://github.com/gatsbyjs/gatsby/pull/35830
17
+ engines: {
18
+ js: () => {
19
+ return {}
20
+ },
21
+ javascript: () => {
22
23
24
25
+ })
26
cacheMap.set(cacheKey, { content, data })
27
28
return { body: content, frontmatter: data }
0 commit comments