Skip to content

Commit

Permalink
fix(gatsby-plugin-mdx): Reference style links broken in static builds (
Browse files Browse the repository at this point in the history
…#30967)

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
  • Loading branch information
jcalcaben and gatsbybot committed Apr 22, 2021
1 parent a0b31bc commit b457b3d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -20,7 +20,7 @@ module.exports = async function getSourcePluginsAsRemarkPlugins({
pathPlugin = () =>
async function transformer(markdownAST) {
// Ensure relative links include `pathPrefix`
visit(markdownAST, `link`, node => {
visit(markdownAST, [`link`, `definition`], node => {
if (
node.url &&
node.url.startsWith(`/`) &&
Expand Down

0 comments on commit b457b3d

Please sign in to comment.