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-remark-images): support markdownCaptions in mdx + fix for remark #21188

Merged
merged 7 commits into from
Apr 22, 2020
4 changes: 4 additions & 0 deletions packages/gatsby-plugin-mdx/utils/gen-mdx.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ export const _frontmatter = ${JSON.stringify(data)}`
reporter,
cache,
pathPrefix,
compiler: {
parseString: compiler.parse.bind(compiler),
generateHTML: ast => mdx.sync(ast, options),
mathieudutour marked this conversation as resolved.
Show resolved Hide resolved
},
...helpers,
}
)
Expand Down