Open aruiplex opened 1 year ago
I have the same problem. Seems a incompatibily with the routing system provided by React and Gatsby. But I haven't achieved to get more information regarding the issue.
I have just solved the problem and it was that the react component was not receiving correct the id="mission"
tag and once I have updated the component, it worked 🥳
Hi there.
I would like to use the table of content to anchor the elements in the mdx, which in the same page, but it doesn't work.
I use the gatsby file system to generate pages by the
mdx
files.This is the
Layout
of the mdx template to add the AnchorLink to the h1 tags.And this is a part of my code to generate table of content :
However, it cannot jump to the element which is in the same page. If I click the anchor element, the URL in the browser will like this:
http://localhost:8000/contents/alexnet/#Alexnet
. It is the page URL:http://localhost:8000/contents/alexnet/
. The hash tag cannot attach behind the page without/
.Thank you for your loveable work.