Gatsby: How to link to another posts in Gatsby MDX

Created on 19 Feb 2020  路  2Comments  路  Source: gatsbyjs/gatsby

Hello!

I'm using Gatsby MDX for my blog posts. And I want to internal linking to another mdx-posts.

Please, tell me. Whats there best way for linking? I should to use standart <a href=""> tag, or I should import Gatsby-Link component, and use <Link to="" for internal links between mdx-posts?

Im internal linking not between .js-pages. I'm linking between .MDX-pages.

Sorry for bad English, im from Russia and thank you so much for Gatsby framework!

question or discussion

Most helpful comment

Hi @nikolayval !

You can do this with regular markdown links or using a Link component.

Check out how we do it for Gatsby blog: https://raw.githubusercontent.com/gatsbyjs/gatsby/master/docs/blog/2019-06-25-profitable-agency-wordpress/index.md

Is it what you are looking for?

All 2 comments

Hi @nikolayval !

You can do this with regular markdown links or using a Link component.

Check out how we do it for Gatsby blog: https://raw.githubusercontent.com/gatsbyjs/gatsby/master/docs/blog/2019-06-25-profitable-agency-wordpress/index.md

Is it what you are looking for?

Yes, it's that I want. Thank you for your answer! I close the issue. Thank you very much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OleksandrSachuk picture OleksandrSachuk  路  75Comments

cusspvz picture cusspvz  路  128Comments

jonathan-chin picture jonathan-chin  路  69Comments

jp887 picture jp887  路  98Comments

blainekasten picture blainekasten  路  130Comments