hasura / gatsby-gitbook-starter

Generate GitBook style modern docs/tutorial websites using Gatsby + MDX
https://hasura.io/learn/graphql/react/introduction/
MIT License
985 stars 376 forks source link

Links to section anchors broken? #95

Closed monkey5an closed 3 years ago

monkey5an commented 3 years ago

Issue: Using anchor link—for example, [create an anchor](#anchors-in-markdown)—does not work.

Steps

  1. Create an anchor link in a markdown file that targets a specific section heading in that file.
  2. Build site and test by clicking the link.

Expected: Clicking link would navigate to the appropriate section of that page.

Actual: Clicking link navigates to the top of the page.

Request

Any feedback on what I am doing wrong appreciated.

monkey5an commented 3 years ago

Resolved: The starter is configured to use gatsby 2.18.10. Updating gatsby to 2.30.1 fixed the issue for me.

I assume it is because it includes this: https://github.com/gatsbyjs/gatsby/issues/25778