Closed MatthewCaseres closed 3 years ago
I don't belive linking to the id of a h2 is valid.
Can you confirm that the id
attribute in appearing on the h2
tags?
Yeah it's on there.
That code is working on my machine in Firefox, Chrome and Edge.
If the id's are making it into the DOM it should be working no problem, mdx-bundler has outputted the correct HTML.
Hmm, it happens consistently for me in local development but not when I deployed to https://mdx-bundler-experiments.vercel.app.
Thanks for your responsiveness and maintenance work, I'll be migrating from next-mdx-remote now that is resolved.
No problem!
Glad to hear that mdx-bundler
does what you need!
mdx-bundler
version: 3.4.1node
version: 15.5npm
version: 7.3.0Relevant code or config
Hash links don't work in Next.js on refresh. If you navigate to them while on the page it will work but if you go to them directly you can get problems.
The screen goes down to the hash link but then goes up again.
Reproduction repository:
https://github.com/MatthewCaseres/mdx-bundler-experiments
Notes: This is an issue in next-mdx-remote as well, here's an issue that is related but not identical from their repo. https://github.com/hashicorp/next-mdx-remote/issues/65