-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Cannot anchor to headings in MDX documentation #18395
Comments
I've been running into the same issue. There's no longer an icon when trying to hover over the headers. You can see it: https://storybookjs.netlify.app/official-storybook/?path=/story/addons-docs-markdown-docs--page. Not sure if that issue is from storybook or MDX? |
Yeah not sure either, seems it only affects MDX type docs, and not the auto generated one from Storybook. |
Same here in v6.5.4. It looks the MDX render doesnt include the id in the heading elements. This issue makes also plugins to include TOCs (like storybbok-docs-toc) unusable. |
Found the same issue in v6.5.7. |
Can confirm the issue is still there on v6.5.9. As @gyfchong mentioned in this comment
I'm also experiencing the same behavior |
Hey all, does anyone know which version of SB should I downgrade to to avoid this first? We need to release our SB to production this week. |
@shilman Is this being investigated by the team? I think its quite a critical issue because documentations without a way to share links is pretty poor experience. |
We have to downgrade SB back to 6.4.19 for now as our project rely heavily on mdx docs. Hopefully this get fix soon. :) Cheers guys, thanks for maintaining SB! It's an awesome product <3 |
Hey everyone, sorry you're experiencing this issue! Took me some time but I finally found the culprit. |
Yo-ho-ho!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-alpha.16 containing PR #18740 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
@shilman Thanks 😊 |
I know it's a big request, but is there any chance of getting this fix backported to v6, it looks like v7 is a bit of a ways away still so it's not clear that that is a viable solution right now. |
Bumped to Have tried manually adding the # to the URL to anchor down but also doesn't work. Not sure what else to try. |
Ah I misunderstood the merged branch, I thought that was for storybook, but it was someone else's repo! 😅 |
@yannbf could we have this patch in @binh710 could you advice on how to downgrade please?
also I've tried thanks in advance 👍 |
I am also thinking that essential bug fixes should be included into current stable version not a future one |
I totally agree. Maybe @shilman can reconsider? |
Yay!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.13-alpha.0 containing PR #18740 that references this issue. Upgrade today to the
|
Awesome @shilman thanks! 🙏 Do you want us to test this before you release the next official 6.x.x version? Edit Edit2 |
@sag1v how do you upgrade it to exact version? |
Yeah I know its a shame 😞 i had to manually upgrade each package. That's why it didn't work out at first because i forgot to upgrade some packages. |
@sag1v tyvm, resolved for me, hope this will go live soon 🤞 what I did: If for someone this version still doesn't work, I would check the following:
That's how I debugged, hope this could help someone :) |
@shilman Hey 👋 |
@sag1v sorry this fell off my radar. I want to get one more thing patched back to 6.5 in the next day or two and then will release. Thanks for your patience! |
@shilman Thanks! |
We're going to change upgrade to allow you to specify an npm tag. For now it's just the way it works:
|
Olé!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.13 containing PR #18740 that references this issue. Upgrade today to the
|
Does not work. Page does not move if clicking on same page anchors. https://storybookjs.netlify.app/official-storybook/?path=/story/addons-docs-markdown-docs--page 😢 |
Describe the bug
When appending the ID of a heading to the URL ie. storybook.com#story-heading the page does not anchor down to the target heading.
Additionally, previously each heading had the ability to click an icon to create a link to the heading, this is now gone. Any manual links also do not work.
To Reproduce
Repo
Deploy
System
OS: macOS 12.4
CPU: (8) arm64 Apple M1 Pro
Binaries:
Node: 16.13.2 - ~/.nvm/versions/node/v16.13.2/bin/node
Yarn: 3.2.1 - ~/.nvm/versions/node/v16.13.2/bin/yarn
npm: 8.1.2 - ~/.nvm/versions/node/v16.13.2/bin/npm
Browsers:
Chrome: 102.0.5005.61
Firefox: 100.0.2
Safari: 15.5
npmPackages:
@storybook/addon-actions: ^6.5.6 => 6.5.6
@storybook/addon-docs: ^6.5.6 => 6.5.6
@storybook/addon-essentials: ^6.5.6 => 6.5.6
@storybook/addon-interactions: ^6.5.6 => 6.5.6
@storybook/addon-links: ^6.5.6 => 6.5.6
@storybook/builder-webpack5: ^6.5.6 => 6.5.6
@storybook/manager-webpack5: ^6.5.6 => 6.5.6
@storybook/node-logger: ^6.5.6 => 6.5.6
@storybook/preset-create-react-app: ^4.1.2 => 4.1.2
@storybook/react: ^6.5.6 => 6.5.6
@storybook/testing-library: ^0.0.11 => 0.0.11
The text was updated successfully, but these errors were encountered: