Replies: 3 comments
-
Is it possible to post the repo that contains this repro? @johno can you take a look at this, please? :) |
Beta Was this translation helpful? Give feedback.
-
thank so much for the quick answer @pvdz This is the repo: https://github.com/cangulo/cangulo-site-2/tree/question-relative-path-component Please note the code I made reference is in the branch question-relative-path-component. Then the main files are:
The project is based on the gatsby-starter-blog template, I only added the MDX features following this tutorial: Thank you so much! |
Beta Was this translation helpful? Give feedback.
-
Summary
Hi there! I have a .mdx file with the next code
As you see, I'm using a component called Caption where I provide a relative path to the test.js file. The code of this component is next:
The problem I have is that when this .mdx is rendered into HTML, the relative path for the test.js file is only updated for the md link (
[test](./test.js)
) not for my Caption component:How can I make the relative path I provide in the Caption component to be updated as the default markdown link?
PD: I already have the
gatsby-remark-copy-linked-files
plugin in my gatsby-config.jsThanks in advance!
File contents (if changed)
gatsby-config.js
: N/Apackage.json
: N/Agatsby-node.js
: N/Agatsby-browser.js
: N/Agatsby-ssr.js
: N/ABeta Was this translation helpful? Give feedback.
All reactions