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

How to add links in markdown to other markdown pages #482

Closed
DonJayamanne opened this issue Sep 28, 2016 · 2 comments
Closed

How to add links in markdown to other markdown pages #482

DonJayamanne opened this issue Sep 28, 2016 · 2 comments

Comments

@DonJayamanne
Copy link

DonJayamanne commented Sep 28, 2016

OS: OS X Elcapitan 10.11.6
Nodejs: 6.6.0
Gatsby: 0.12.12

I'd like to add a link in a markdown file to another markdown file.
This works in development mode, however doesn't when trying to publish with the --prefix-links option.

Basically, links generated in the markdown files are not prefixed.
Is this supported or am I missing something?
Thanks.

@KyleAMathews
Copy link
Contributor

In 0.x It might be possible if you use a custom loader like https://github.com/gatsbyjs/gatsby-starter-default/blob/master/loaders/markdown-loader/index.js

Related is #475 — this wouldn't be an issue if we were using basename with React Router.

@DonJayamanne
Copy link
Author

Perfect, that works along with the use of markdown-it-replace-link
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants