-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Added condition to check if it's an anchor link #8132
Added condition to check if it's an anchor link #8132
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/storybook/monorepo/buq0p3ctc |
@shilman could you please take a peak at this? |
cd71311
to
a936d43
Compare
Thanks @ndelangen. Will kick the tires on it this weekend & get back! |
good to merge @shilman ? |
Issue: #8068 #8184
What I did
I checked that at Notes addon if you use an anchor link in markdown it's using the component to render and if you click on that link it's redirecting to another page instead of scrolling to the section. I added a regex to check if the link starts with # and used the normal tag to render instead the , same way if it's an absolute url.
How to test
If your answer is yes to any of these, please make sure to include it in your PR.