Skip to content

Commit b457b3d

Browse files
jcalcabengatsbybot
and
gatsbybot
authored
fix(gatsby-plugin-mdx): Reference style links broken in static builds (#30967)
Co-authored-by: gatsbybot <[email protected]>
1 parent a0b31bc commit b457b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-plugin-mdx/utils/get-source-plugins-as-remark-plugins.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = async function getSourcePluginsAsRemarkPlugins({
2020
pathPlugin = () =>
2121
async function transformer(markdownAST) {
2222
// Ensure relative links include `pathPrefix`
23-
visit(markdownAST, `link`, node => {
23+
visit(markdownAST, [`link`, `definition`], node => {
2424
if (
2525
node.url &&
2626
node.url.startsWith(`/`) &&

0 commit comments

Comments
 (0)